Questions tagged [root]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
164 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
781 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
2k 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
36 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
1k 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
49 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
356 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 ...
4
votes
1answer
425 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
278 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
649 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
256 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
47 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
83 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
41 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
2k 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
81 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
864 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
393 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
249 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 ...
3
votes
3answers
91 views

Sudo tickets and subsequent non-sudo sibling process

Imagine that locally on my system sudo is configured with a timeout, so that once I authenticate after running sudo once in some terminal, I don't need to re-authenticate for another 10 minutes. Does ...
6
votes
2answers
5k views

debian su - and su $PATH differences?

$ su - Password: # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # exit logout $ su Password: # echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games I have ...
0
votes
1answer
480 views

insufficient permissions for device

While using the command adb root the output I obtained is adb: unable to connect for root: insufficient permissions for device: verify udev rules. See [http://developer.android.com/tools/device.html]...
1
vote
1answer
102 views

/etc/sudoers: why is there an entry for root? [duplicate]

We are distributing a standard sudoers file to our Linux servers. From an historical point of view the line .. root ALL=(ALL) ALL has been removed or never added. The package default ...
2
votes
1answer
82 views

Is this good configuration of my SSH server for the local network only root access?

Intention I would like to permit SSH root access to my server, but for security reasons from local network only. Environment OS: GNU/Linux Debian 9 Stretch fully updated. SSH: OpenSSH version 1:7....
0
votes
1answer
2k views

cannot create directory Permission denied - even when using sudo

I am trying to install gsl-2.5 - https://www.gnu.org/software/gsl/. I have used the command sudo ./configure && make && make install, but still run into permission problems: libtool: ...
-1
votes
2answers
50 views

Is there a workaround the sudo permission? [closed]

I just got assigned the task to install and compare two software packages for linux but I don't have sudo permissions to do so. Is there a work around it? Is this even possible? Another question ...
0
votes
1answer
275 views

Ubuntu - Root user cannot see $JAVA_HOME variable expanded to $PATH [duplicate]

I have created a variable $JAVA_HOME in `/etc/environment' JAVA_HOME="/usr/lib/jvm/jdk" PATH="...bla bla bla:$JAVA_HOME/bin" I also edited /etc/profile to have source /etc/environment so that all ...
1
vote
1answer
35 views

My script needs write access to /dev/sdX. How to avoid runnig it as root?

I'm developing a Bash script that handles formatting and testing (with f3) of massive amounts of USB drives, like this: mkntfs -QF /dev/sdX I used to simply run that script as root: sudo MyScript....
-2
votes
1answer
732 views

Installing MySQL without Root Access on CentOS

I'm trying to follow the instructions here. 1) I can't find CentOS listed as an operating system on the MySQL website. So I downloaded the mysql-8.0.11.tar.gz from the MySQL website: MySQL Community ...
1
vote
0answers
133 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
0
votes
3answers
234 views

Prevent script from sudoing

I have a script that runs an utility every two days. This utility does some stuff on my system. It is a very known, widely used piece of open source software. #!/usr/bin/env bash #...do stuff here ...
4
votes
2answers
2k views

Acecssing NFS share without root privileges

I want to access an NFS share from within a Docker container. I don't have control over how that Docker container is started, so I can't run it in privileged mode etc. But honestly, I don't even want ...
1
vote
2answers
4k views

(root) FAILED to authorize user with PAM (Permission denied)

When tailing /var/log/cron i noticed that the cron job is failing due to PAM permissions. In my access.conf i do have the following uncommented to make sure (or what i thought was making sure) that ...
0
votes
0answers
76 views

Root/non-root user permissions to edit file

I am running scriptA.sh as root. Inside the script I need to echo data into FileA. FileA is owned by user1. FileA is located under /usr/local and has the following permissions: -rw-r----- 1 user1 ...
2
votes
1answer
377 views

How to prevent root login from GNOME 3 login screen (Arch Linux)?

I am running an up-to-date installation of Arch Linux and GNOME 3.28. For security reasons I don't allow root login in the consoles. I have done this by configuring /etc/securetty. However, it ...
0
votes
1answer
195 views

Is there a way to disable only root login via serial console on RHEL6?

I'm trying to disable root login via the serial console in RHEL 6. Based on this link from redhat (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s2-...
4
votes
0answers
1k views

Gain root access without using root's login shell

I bricked the login of my root user by removing zsh while it was still the default shell. Now as a result will login in fail, since on login will it try to use /bin/zsh(1), which is missing. Only one ...
1
vote
2answers
705 views

Kali Linux Can't Log in as non-root user and wireshark complaining about root

When I opened wireshark (fresh install of live usb kali with persistence) for the first time it complained about me being root. This is what I found in googling it: Yes it's recommended and ...
22
votes
3answers
4k views

What determines which Linux commands require root access?

What determines which Linux commands require root access? I understand the reasons why it is desirable that, say, apt-get should require root privilege; but what distinguishes these commands from the ...
1
vote
1answer
251 views

/sys/kernel/debug/dynamic_debug/control not writable, follow xhci_hcd debug guide

I want to follow this tutorial. But I can't write to /sys/kernel/debug/dynamic_debug/control- or [debugfs]/dynamic_debug/control-file as suggested by the guide, even tough I am root, the special ...
0
votes
1answer
1k views

How do I create a service on CentOS running as a different user than root?

I'm using CentOS 7. I want to run a nodeJS script as a service but run the service as the "rails" user. As root, I created the file /usr/lib/systemd/system/myservice.service, with the contents [...
0
votes
1answer
390 views

How to access /root directory from a browser?

Disclaimer : This question is meant to be answered for Educational and learning purpose. /root is an important directory meant to be only accessible to Root user. Accessing /root through a browser ...
0
votes
2answers
128 views

Big security problem in Nautilus 3.28.1

In my Arch Linux installation with Gnome 3.28, I recently noticed that I can enter with Nautilus in the private directory /root and see the files inside while Nautilus is started without root rights. ...
0
votes
1answer
99 views

What does “a process have superuser privileges” mean?

From APUE If the process has superuser privileges, the setuid function sets the real user ID, effective user ID, and saved set-user-ID to uid. If the process does not have superuser privileges,...
5
votes
1answer
675 views

unshare --map-root-user switch to original uid/username after setup

I'm using unshare to create per process mounts, which is working perfectly fine by unshare -m --map-root-user However, after having created my bind-mounts by mount --bind src dst I want to change ...
1
vote
2answers
70 views

How can I prevent ROOT from deleting a directory, but still allow root to have full control of all files and subdirectories within it?

chattr +a would be perfect if it only applied to the root of directory, not everything from there on. Is there a way to limit chattr to just the one folder (e.g. the opposite of -R as is normally ...
0
votes
0answers
368 views

cannot find a valid baseURL for repo : pgdg94

bonjour j'ai un soucis pour l'installation de postgresql dans mon serveur sme 9.2 a chaque fois que j'essaie de l'installer avec la commande yum install on m'affiche un message d'erreur "error:cannot ...