Questions tagged [root]

The "root" account is the most privileged account on a Unix system.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Normal SSH Setup operations fail for remote root user when origin is a MAC

So this is about Centos7, SSH remote login setup, and the fact that Macs don't have a root user. I've asked this question a couple times and been provided explanations about how ssh works. Some of ...
1
vote
1answer
14 views

Non Root User request to root for a specific service restart

We have a typical problem in our environment. Typically we have users with non SUDOER and ROOT access who are monitoring services of our application. At times they need to restart a service which ...
0
votes
0answers
12 views

Error in setting up root config file [duplicate]

In setting up the root I used the following commands sudo su echo "student ALL=(ALL) ALL" > /etc/sudoers.d/student chmod 440 /etc/sudoers.d/student but my username is kenil and not student. And ...
1
vote
1answer
35 views

Separate /home from root? (Linux Mint)

My computer recently got messed up because of timeshift filling up all my storage. I had to erase my partitions and reinstall Mint. Some users said to separate /home from root next time. In other ...
2
votes
0answers
30 views

What are the directories and configuration files used to set the umask by the superuser in Solaris UNIX?

One file I can think of is the .profile file in the user's home directory. However what are the absolute paths (directories and file names) that are used to set the UMASK level at the operating ...
0
votes
0answers
44 views

How to make password prompt to the root shell accept any password?

Board running embedded Linux version 2.6.26.5 and Busybox 1.10.2 When accessing board via a serial console port, the access to root shell is password protected. How to make the password prompt accept ...
1
vote
0answers
31 views

I cannot delete files on IRIX 6.2

I started using IRIX 6.2 so I could do some Nintendo 64 Development for the IRIX community. WARNING: IT IS A VERY WEIRD SITUATION! Also, I am using root. The file manager GUI states that the files ...
0
votes
1answer
46 views

Passwordless (key based) SSH Access to a Linux system from a MAC?

New Edits: So I went back and did some significant testing and revised my opinions about my problem a little. First, here's a link to a thorough and quickly graspable diagram of the SSH Handshake (...
2
votes
1answer
55 views

Cannot su into root default shell - Debian

I am using a Debian 9 server. Usually I access via ssh to a normal user (say user1) and su into root, because I disabled ssh into root. Lately I was setting up a git-server where I created a user git ...
1
vote
3answers
39 views

“su doesn’t record the commands executed as root”

I am currently reading book Unix and Linux system administration - Evi Nemeth. On page 70 under the topic "su: substitute user identity" there is a statement that says "su doesn’t record the commands ...
1
vote
1answer
55 views

$PATH: output showing malicious program?

I read that using echo $PATH, for NON-root users should resemble: /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/username/bin: I read that using echo $PATH, for ROOT users should resemble: /...
11
votes
1answer
2k views

Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up

I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root ...
0
votes
0answers
21 views

Restrict root shell access

Background : 1. I have two users admin and root. admin user is not in sudoers and only runs a menu of restricted commands. 2. root account access is restricted to shell based protocols like scp, ssh ...
1
vote
2answers
33 views

Set the password for the first build of openwrt

I want to build an openwrt source and set everything up through the menuconfig section But there are no settings to set the password Which part should I change or which section should I add? I am ...
5
votes
2answers
603 views

Error when running ((x++)) as root

I make bash script temp.sh with the following content: age=0; ((age++)); When I run it as a normal user, it runs fine. But when i run it as root I get error: ./temp.sh: 4: ./temp.sh: age++: not ...
0
votes
1answer
371 views

su: cannot open session: Permission denied

I'm getting "access denied" attempting to login as root on the console and via ssh (Yes, I know root ssh access should be disabled - I've just inherited this box). I can login as non-root user who has ...
0
votes
1answer
51 views

If - Else statement: determining whether the user is the administrator

read -p "What is your name?:" ANSWER if ["$ANSWER" == "root"] then echo "Hello, administrator" else echo "Hello, $ANSWER" fi If I answer "root" in the console, I assumed to ...
0
votes
1answer
41 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
0
votes
1answer
67 views

Cannot edit crontab from service

I'd like to schedule a daily autoshutdown via sudo service autoshutdown start or either abort it via sudo service autoshutdown stop. /etc/systemd/system/autoshutdown.service [Unit] Description=...
0
votes
0answers
45 views

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root?

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root? I'm studying cyber security and plays with capture-the-flag machines to enhance my ...
0
votes
1answer
118 views

Ubuntu 16.04 root password suddenly not working(even after resetting) [duplicate]

I disabled password for login at User Account setting, and later when I ran sudo, I get "Sorry, try again." It seems my previous password doesn't work anymore. I also tried hitting enter directly but ...
1
vote
1answer
52 views

Can still cat/tail/head/etc. a file without the read permission

So as root, when I try to cat a file without the read permission, I can still see what's in it, which seems kind of strange, because as root I cannot write to a file without the w permission (it opens ...
-1
votes
2answers
283 views

What is the root password for raspbian jessie or debian 9

What is the default root password for raspbian jessie or debian 9? I have Raspbian Jessie stretch iso "Raspberry Pi Desktop" or pixel Virtualbox and I need to install keys with root "su", what is the ...
0
votes
2answers
110 views

How to extend root partition by shrinking home

Recently I've found out that soon I will run out of space on my / (root) partition. I've done some research on extending root partition, however, it wasn't too informative (mostly everyone say it's ...
0
votes
1answer
22 views

readonly for root ( -i flag disabled )

here's my problem : a friend set me a readonly bad wallpaper on ubuntu gnome. I want to change it. : ) I found the file i have to modify : /etc/dconf/db/local.d/locks/00_default-wallpaper but when ...
0
votes
1answer
115 views

How to avoid password prompt when starting Synaptic?

Whenever I start the Synaptic package manager, it asks for a password. How do I make it skip that dialog? I'm using Debian 9.8.
0
votes
0answers
89 views

How to unlock the login for the root?

How to unlock the login for the root? In Ubuntu 14.xx and previous versions of Ubuntu, it was possible to log in to the graphical session as root. Now i can't do this anymore. How to unlock the root ...
2
votes
1answer
46 views

Switch to root user always failed after modifying /etc/pam.d/common-password

I'm using ubuntu 18.04. To strengthen my pass-word policy I modify my /etc/pam.d/common-password like this: # here are the per-package modules (the "Primary" block) #password requisite ...
0
votes
1answer
354 views

Docker running an app with NET_ADMIN capability: involved risks

I'm trying to run an app in a docker container.The app requires root privileges to run. sudo docker run --restart always --network host --cap-add NET_ADMIN -d -p 53:53/udp my-image My question is: ...
6
votes
2answers
892 views

Why doesn't root need the password to run “sudo” even when “NOPASSWD:ALL” isn't written in /etc/sudoers [duplicate]

In /etc/sudoers, there is always: root ALL=(ALL:ALL) ALL However, the root user (with UID 0) doesn't need to enter password when they run sudo command. For other users, a password is required ...
0
votes
0answers
30 views

What is admin://<filepath>?

recently I've used the next command xed admin://<filepath> and not sudo xed <filepath>. I've tried to find some infos about the first command but I've do not found anything. I presume ...
0
votes
0answers
101 views

Ubuntu 16.04 - Cannot SSH with root user, login successfully but closed immediately with return code 254?

I could SSH to 1 server with a non-root user. However, I tried to enable root login at /etc/ssh/sshd_config with this content: # Package generated configuration file # See the sshd_config(5) manpage ...
0
votes
0answers
68 views

Give root's permission to restricted user using PAM and Linux capabilities

I want to give root's permission (or root account) to my test's user not using wheel-group or sudoers on CentOS 7. Instead I would like to use module pam_cap.so and linux capabilities. I try this: ...
-1
votes
1answer
70 views

Administrative password not accepted

I just finished installing Debian 9.8 Cinnamon and set up a root pwd and my user pwd. Now I want to install veracrypt and it asks me for my administrative password, but the root password doesn't work. ...
0
votes
1answer
78 views

Running a service on CentOS as a system user other than root

I've created a system user jackett (useradd -r jackett) and I'm trying to run a systemd service under it on CentOS 7. Service File: [Unit] Description=Jackett Daemon After=network-online.target [...
0
votes
1answer
31 views

Is there a way to retrieve a root mysql password (no reset)

Is there a way to get back / retrieve a mysql root password. I mean get it back : not resetting it (I already know how to reset it and I use the reset method currently).
0
votes
0answers
36 views

Why is / called root, but there's also a use called root? [duplicate]

So in a unix system, / is root. But the default admin is also root. So why do these two quite different things have the same name.
-3
votes
1answer
35 views

Scientific Linux 7x - Too much system hardening!

Some Linux users like my company build Linux servers to use on factory production lines. We write software to load BIOS and FLASH memory and test our products. We constantly need to reboot these ...
0
votes
1answer
124 views

What is the difference between using crontab -e and /etc/crontab [duplicate]

I wish to run stuff from startup and also trigger reboots using cron. I was using sudo crontab -e and adding commands there. The commands work apart from the reboots. The reboots do not happen all ...
1
vote
1answer
92 views

No root permission in a docker container image

I test a Docker container (created from Nvidia CUDA image) started with the command: docker run -i -t xxxxxx /bin/bash I can see the root prompt, but still don't have privileges for some operations; ...
0
votes
1answer
60 views

Always open as root?

I have to right-click in my File Browser to open as root (more specifically, any time I want to edit files), and I'd like to prevent having to do this step every time. I edit files a lot, obviously 😂 ...
0
votes
1answer
215 views

If rc.local is run as root why can't it touch a file

I wish to execute a script every time on boot-up using /etc/rc.local. My script for example is called startscript.sh which is stored in /home/debian as below. It first tries to create a file called ...
0
votes
1answer
64 views

Difference between running a process as root and running process with all the linux capabilities

I have a docker container which runs perfectly fine in a kubernetes pod when privileged:true is set in the specification. But when I run the same docker container, by giving all the linux capabilities,...
0
votes
0answers
99 views

su does not work in rescue.service for ExecStart

The default value of ExecStart in /lib/systemd/system/rescue.service is: ExecStart=-/bin/sh -c "/sbin/sulogin; /bin/systemctl --job-mode=fail --no-block default" This doesn't work if your root ...
0
votes
2answers
113 views

Who is marc, the default receiver of root mail in /etc/aliases?

Is 'marc' some person in the Linux/Unix community? In /etc/aliases on a default centos install, the bottom line reads: # Person who should get root's email # root: marc Or is it just a ...
1
vote
1answer
45 views

Echo'ing into a file only works with root and not sudo [duplicate]

I have a directory /sys/class/leds/ with the file bananapro\:green\:usr/trigger that controls an (green) onboard led. The contents of this file just contains the modes for the led. As root, I can run ...
0
votes
3answers
160 views

What happens if one tries to access a root directory on a hard drive from another computer?

Lets say you have a directory which is only accessible with root privileges. What happens if someone takes the physical drive out of the computer and mounts the filesystem (maybe even using another ...
0
votes
2answers
183 views

What happens if I change chmod permissions to rrr [closed]

I want to try to change /bin/chmod permissions file to rrr but afraid to loose my machine. What happens next if I change them?
29
votes
1answer
3k views

Given that root has all privileges, why is root ALL=(ALL) ALL in /etc/sudoers? [duplicate]

I looked at this question: Trying to understand the difference between “modernNeo ALL=(ALL:ALL) ALL” and “modernNeo ALL=(ALL) ALL” in the sudoers file I still have a question. Since the "root" user ...
2
votes
0answers
73 views

Recovering from chown -R <user> /usr/bin [duplicate]

I ran chown -R <user> /usr/bin in arch thinking I could easily fix it if anything went wrong. Unfortunately, that has proven to be incorrect. As a result of this, startx won't run i3 ...