Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [root]

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

0
votes
1answer
72 views

Does a user have to log in to run a process and become its owner?

In general, does a user have to log in to run a process and become its owner (ruid, or euid)? Does this apply to any user or any non-root user? For example: In the boot sequence of Linux, the kernel ...
2
votes
1answer
37 views

Allow PAM module to always access a root only file

I have a custom PAM module that needs to access some sensitive information on the hard disk to perform its job. These files would ideally be stored with root access permissions only. I've been ...
1
vote
1answer
339 views

How Do I Extend the Root Partition Backwards

I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could ...
0
votes
0answers
121 views

Cannot kill my lsof processes even as root

My lsof is hung so bad that I can't even kill -9 it. Initially, it was owned by another process, foo. I tried killing foo, hoping that lsof would also go way. But while I was able to kill -9 foo, now ...
1
vote
1answer
315 views

Gain Root Access to remote Server with sudo, su, and pkexec not working

I'm running CentOS7 on an old dell box that I repurposed as a home server. I also ssh into it from a remote location to make sure everything is running smoothly, and to do things like rsync my laptop. ...
1
vote
2answers
99 views

Is it possible to hide an area of hard disk from root user?

Do linux kernel have a feature that can be used to hide an area of hard disk (e.g last 1GB of hard disk) from root user or at least make that area completely unwritable by any means?
2
votes
1answer
124 views

Does the root user have read/write access to kernel code?

I want to know if the root user can read from and write to sections of kernel code in memory. Can it?
0
votes
1answer
82 views

Is there a way to prevent root user from modifing kernel and boot loader?

Suppose that a regular linux machine is compromised by an attacker who obtained a root shell, he can modify the system kernel or modify boot loader to load another kernel. Is there a way to prevent ...
1
vote
3answers
947 views

what is chown root:root doing?

I read a tutorial and was instructed to do chown root:root /home/mynewuser as part of the process to get my ssh key working with a new user i created "kevind", however it broke the path. What does ...
1
vote
1answer
173 views

Do I need to run BackInTime as root?

Just trying out BackInTime, not running as root, and when I've completed the initial configuration of settings I hit OK and... nothing happens. I've got my destination base set to a dedicated ...
0
votes
1answer
185 views

ssh & local root login works with invalid password in Debian 9

I am trying to login to Debian 9 machine with root username, locally and through ssh.  It logs in with any invalid password.  I want to access the machine with the correct password only.  Why does an ...
0
votes
2answers
71 views

How does a EC2 machine prevents ssh root access with a warning?

I've setup a machine on EC2 running Debian stretch. Upon trying to ssh as root, I get the following message: $ ssh -i "mykey" root@machine Please login as the user "admin" rather than the user "...
2
votes
2answers
109 views

Root problem in Solaris 8

I am having some troubles on my Solaris 8 computer. I don't know how this happened, but the path of the user root has changed in /etc/passwd, therefore I can't become the root user anymore. Under ...
1
vote
3answers
512 views

using a graphical application on Ubuntu 18.04 with root rights

Since I've upgraded to Ubuntu 18.04 I am no-longer able to do something like: sudo su - gparted because now root can't access Display:0 and I've not found a way round. Does someone knows how to ...
0
votes
0answers
39 views

What is the directory “/home/[username]/.checkers” and why is it owned by root?

This is for a website that has been passed from one WHM/Cpanel hosting environment to another. It's running the Loaded Commerce shopping cart and ShipRush shipping plugin. The ShipRush plugin needed ...
0
votes
1answer
213 views

SSH asks for password but I can get in thru serial port without it

I have an arm7 board running GNU/Linux, it's connected to the internet via Ethernet port. I am trying to SSH in to it as root@IPaddr but it is prompting me for a password. I am pretty sure the ...
0
votes
1answer
65 views

How to add a new user and disable its root login? [closed]

A sysadmin may want to add a new user that will have no root access (nor sudo). I don't sell hosting services but I can bring this field as an example; an hosting company gives its customers the ...
0
votes
1answer
52 views

How can I prevent a process to change its setuid bit back to RUID within the process itself

I set my SETUID bit to a non-root user so that the process should take the ownership of that executable file always. But I figured out setuid bit can be changed back to RUID within the script itself. ...
1
vote
1answer
82 views

Is root a privileged user in unix?

I kind of know the answer, but what I want to know is the implementation details: Suppose root is logged in, and we have a file which has permissions 000. Then root can write and read that file. But ...
10
votes
2answers
2k views

shell script: use sudo inside it vs run it with sudo?

When writing a shell script, in which some but not all commands in it need superuser privileges, shall I add sudo to those commands which need superuser privileges, and run the shell script without ...
2
votes
1answer
596 views

sudo -su vs sudo su -

On RHEL 7.5, I created a non-root user and would like to switch from one non-root-user to another non-root-user, without password. First tried, sudo -u user1, command syntax error then tried, sudo ...
1
vote
0answers
328 views

How to use service to start/stop app with non-root access?

RHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries ...
1
vote
0answers
72 views

Fedora how to astart GUI app under root [closed]

I have a problem starting gui apps under root. I works OK with other distributions (Ubuntu, Centos) but not with Fedora. Any clues? Could not open display (X-Server required. Check your DISPLAY ...
1
vote
2answers
147 views

why Linux server do not ask password in single user mode

Why doesn't RHEL server ask for a password in single user mode? Red Hat Enterprise Linux Server release 6.6 (Santiago), in case it's relevant. I had many cases where I had to reset root password in ...
0
votes
1answer
34 views

Is it recommended to use keys login with root user?

I know that for you users and the ones that you create you can use ssh keys to connect to another machines. You just create the ssh key import it to the target machine and then when you login next, no ...
1
vote
1answer
100 views

Running Script via Crontab With Different Result?

I have the following script: #!/bin/bash /usr/bin/echo q | /usr/bin/htop -C | /usr/bin/aha --line-fix | /usr/bin/html2text -width 999 | /usr/bin/grep -v "F1Help\|xml version=" > htop.txt It just ...
-1
votes
1answer
77 views

su - root failed with error “Cannot execute username: No such file or directory”

I can't login to root on VPS server. But login to usual user is successful. I've tried to login username and after that change to root by commands su - root and su -. These commands fail after ...
1
vote
1answer
306 views

How do I launch a GNOME GUI application as root?

I tried doing it the macOS way by trying to drop it into a Terminal window but didn't quite work. In the Mac apps are self-contained; I hand't really thought about it on Linux but even so I woulnd't ...
1
vote
1answer
128 views

rootfs readonly vs overlayfs

We need to have a read-only rootfs because of safety issues (no change to the FS in flash is possible). Other writable partition can be used with the read-only rootfs (for logs for example). In terms ...
0
votes
1answer
583 views

Sound doesn't work properly in root but does in normal user

I'm using debian 9 with gnome. When i use the root the volume control doesn' t work and doesn' t have the megaphone symbol (that is also missing in the gnome panel). I can move the bar but doesn` t ...
1
vote
1answer
65 views

Can a linux user access to a file in this case?

This is a theoretical question. I'm using a linux system with two users: root and nonRoot. I'm debugging an application as nonRoot, that uses a file placed in the following path: /home/nonRootFolder/...
0
votes
1answer
1k views

Copying a file from ROOT to home directory

I am trying to copy a file from Root directory over to my home directory. I had to execute the extraction of a file as ROOT user. I can see it is extracted into root directory but I now want to access ...
0
votes
2answers
35 views

Why different command scripts are used for the same command when run as a normal user and when run as a root user?

I see the script location for the command date for a normal user, it shows which date /bin/date But when I run the same command from root it shows the output /usr/bin/date. Why so ?
-3
votes
3answers
894 views

Grant full root permissions to an user

In /etc/sudoers i added: %myuser ALL=(ALL) NOPASSWD:ALL Now if i type sudo apt update i don' t need to type the password. But i want full root permissions: namely, i want to use only apt update. The ...
-1
votes
2answers
45 views

reestablish root shell

I disabled the shell of user root with the command chuser shell=/bin/false root and now I cannot switch to root with sudo su -. PermitRootLogin is disabled too, so I don’t know how could I reestablish ...
2
votes
1answer
254 views

Gparted and Synaptic ask for root password instead of mine

I've just installed Synaptic and Gparted on my Raspbian Lite. However I can't use them when launching from the desktop. They ask me for the root password which... there isn't. I have no problem ...
3
votes
1answer
315 views

Why I can not drop sudo root privileges?

I am debugging a program and not quite sure why I can not drop privileges. I have root permissions via sudo and I can call setgid/setuid, but the operation [is] is not supported. Basic code to ...
5
votes
1answer
257 views

Can't chown 0 (root) in Cygwin

This command: rm -f testfile && touch testfile && chown 0 testfile is failing in Cygwin with error: chown: changing ownership of 'testfile': Invalid argument Why?
0
votes
3answers
505 views

Why doesn't root alias vi to vim if it's standard for other users?

On centos (and I believe many other distros) vi is aliased to vim for all users by default. However, for whatever reason vi is not aliased to vim for the root user, something that always annoys me ...
0
votes
5answers
219 views

Is a process with effective or real uid being root still subject to permission bits of a file when accessing the file?

From https://security.stackexchange.com/a/67218/ In Unix and Linux there are two levels of permissions: standard user and superuser (usually called root). The standard user has access only to ...
0
votes
0answers
33 views

Always run script as root [duplicate]

I want to run a command automatically. The problem is that it may only be run after I logged in and that it requires superuser privileges. I've heard of suid before, so I thought I'd use it for this. ...
1
vote
0answers
38 views

Is there a way to run a program at startup and in the background without root access?

I'm trying to have it so that my program is able to run at startup and in the background without having the user to be root. Ideally this would happen at the installation of the program and not using ...
3
votes
1answer
79 views

Creating users own “root” [closed]

So my goal on this is to give each user their own "root" by basically making a loop drive with a copy of core files. I know there is stuff like jail shell, and all that fun stuff that makes it a bit ...
0
votes
1answer
37 views

aplay produces no audible output for non-default user, but verbose status looks ok?

I am writing a python script which utilizes a Raspberry PI's GPIO and thus the script must be elevated to run as sudo in order to obtain correct privileges for /dev/mem and /dev/gpiomem and access the ...
3
votes
1answer
1k views

Setting the root PATH for su [duplicate]

When I am changing (on my debian box) to the root user with su, apparently the PATH is not correctly set. Some vital directories like usr/local/sbin are missing. In /etc/profile I have the following ...
0
votes
1answer
62 views

How to switch user root to user to root to kill parent process?

I am developing a complicated automation script that will automate a large portion of my build, install, deploy and post installation processes. The problem is that within all of the commands that ...
0
votes
0answers
74 views

Crontab is deleting my jobs or reverting to a previous state?

I have found a similar problem (Crontab resetting itself) but it does not provide much insight. I am new to using crontab and am having the same problem with my crontab be reverted to a previous state ...
-1
votes
3answers
751 views

Know password, but can't SU or run commands with sudo [closed]

This issue popped up about a week ago, not sure what caused it. Previously the environment had been working as expected. Using a VM hosted on VMWare tools, uname -a returns roughly the following. -...
2
votes
1answer
339 views

How does Magisk on Android work as su without setuid and capabilities?

I've read in another answer that on Android the su binaries avoid needing to be setuid by using filesystem capabilities like cap_setuid. But then I tried to check this, and to my surprise, I found no ...
1
vote
0answers
223 views

Why is root always logged in from ttyS0 (even after system reboot)? [closed]

I am continuously seeing root in the output of the w command on a virtual machine hosted on the cloud. I have restarted the machine several times and even tried sending CtrlAltDel from the OpenNebula ...