Questions tagged [root]

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

154 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
660 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 ...
5
votes
1answer
828 views

Can I add iptables rule from the inside of a C Linux program only with capabilities or do I need necessarily root?

I need to add an iptables rule from the inside of a C Linux program. How should I do? Do I need root privilege or can I just grant some capabilities? I tried granting CAP_NET_RAW+iep and using popen(...
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 ...
4
votes
0answers
916 views

Alternative to adding 'user_allow_other' to /etc/fuse.conf for security?

It looks like for mounting my Android phone I need to add user_allow_other to /etc/fuse.conf. I researched what this does: According to the manpage: user_allow_other Allow non-root users to ...
4
votes
1answer
373 views

Unable to get sudo lecture working on CentOS 7 server

I'm trying to enable the sudo lecture every time someone executes sudo, but I can't seem to get it working at all. I found a similar question here, in which someone states that if you don't see any ...
4
votes
1answer
1k views

Run command with sudo by default

I need a linux user (lets call him "bob") who is allowed to run a list of commands which require root privileges. So let him be required to run /sbin/firstcommand and /sbin/secondcommand (which are ...
4
votes
1answer
311 views

Some software runs only by root terminal

I'm facing this odd situation here, programs such as gparted, furiusisomount and Rstudio never run by clicking on their icons in the applications menu or by running them with terminal as a normal user....
3
votes
0answers
48 views

Why the user root doesn't have “w” permission of its home directory?

I'm on Oracle Linux 7.6. The user root apparently has write permission for its own home directory /root. But why the mode bits of /root shows dr-xr-x---. instead of drwxr-x---.? root:[~]# cat /etc/*...
3
votes
0answers
587 views

root password not working when entering in Single-User Mode

I want to mount the /var directory in a separate device, but I have to move some files from the current /var to a temporary storage, mount /var on the device that I want and then moving the data from ...
3
votes
1answer
2k views

Cannot bypass login screen with correct credentials and no errors in Kali Linux

Today I downloaded the latest VMware image of Kali Linux (Kali Linux 64 bit VM). After that, I configured the hostname in /etc/hostname and adapted also the /etc/hosts to set permanently a hostname. ...
3
votes
2answers
1k views

How can I merge 2 disk images into one with 2 partitions?

I have 2 (relatively small) disk images for qemu (raw format) containing different filesystems (say fat and ext4). I want to put them into an usb stick as two different partitions so that I can plug ...
3
votes
1answer
423 views

Why does xdg-open text_file differ from sudo -u me xdg-open text_file?

If I run the following command, the text file opens in my preferred editor (kate). $ xdg-open text_file However, if I try the following, where sparhawk is my username, I get several warnings, and ...
3
votes
1answer
83 views

Power of a root process to inspect memory

I know on a Linux machine, if a process is able to get root privilege, it can access parts of the file system it normally wouldn't have access to. I want to ask whether a rooted Linux process can ...
2
votes
1answer
69 views

How to disable root password in NixOS?

I tried setting users.users.root.hashedPassword = "*"; similar to sudo passwd -d root or user { 'root': password => '*', require => Package[ruby-shadow], } in Puppet, but after sudo nixos-...
2
votes
0answers
31 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 ...
2
votes
1answer
54 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 ...
2
votes
0answers
188 views

Why the “ passwd ” command give the root shell without password?

I have a Fedora server in which every time I execute passwd it automatically logins to root with no password necessary: Also, passwd is unable to change root password. Furthermore, root account is ...
2
votes
0answers
78 views

modprobe in setuid contextmodprobe in setuid context

In CVE-2017-0358, author notes that The issue is that /sbin/modprobe is not designed to run in a setuid context. As the manpage of modprobe explicitly points out The MODPROBE_OPTIONS environment ...
2
votes
0answers
262 views

How to increase the root partition in embedded Linux with fdisk and resize2fs when root partition is in between two important partition

I am using DE0-Nano-SoC / Atlas board. The connection to this board is through the Putty running in host computer.I have a problem to increase the root partition. root@socfpga:~# fdisk -l Disk /dev/...
2
votes
0answers
663 views

How GRUB determines the Linux root partition that it pass to the kernel with “root=”?

When the GRUB bootloader boots Linux, it pass the name of the root partition (where /sbin/init is) to the kernel through the root= kernel parameter in order for the initrd to be able to mount the real ...
2
votes
1answer
260 views

Etcd executable gets permission denied as root

I am trying to install etcd on a Debian machine. root@s1:/tmp/test-etcd# uname -a Linux s1 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux root@s1:/tmp/test-etcd# uname -m ...
2
votes
0answers
5k views

checkPermissions Missing write access to /usr/local/lib/node_modules

I tried to install the npm install pug, could not because of the permisions, got this: checkPermissions Missing write access to /usr/local/lib/node_modules However im logged in as as root Linards:~ ...
2
votes
0answers
938 views

How to mount usb drive without root or fstab?

I know this is one of those questions that have been debated up and down the web. But I still want to have some opinions on this. It is about mounting a usb-drive or usb-stick as a normal user. I ...
2
votes
0answers
485 views

Bluez bluetoothd requires root for all processes interacting with it

I've upgraded my bluez installation to version 5.41 on my Ubuntu xenail box (16.04). I'm trying to do some testing with a piece of bluetooth low energy hardware so I'm staring bluetoothd with the ...
2
votes
1answer
36 views

CentOS requires root pw for network pref changes

Why does CentOS require root privileges to configure the preference panels? It seems like sudoer access really should be sufficient for this. Is it possible to change this?
2
votes
2answers
181 views

Why does root need to enter a password when executing specific commands?

On a certain RHEL5 machine, when root is executing commands such as passwd someuser or any other privileged command, the root password is requested for verification and the command can't be executed ...
2
votes
1answer
572 views

`su` and `sudo bash` give a root prompt that won't execute any command

This is happening on a CentOS 6.7 server, that I can ssh to as root or as my ordinary user. Opening an ssh session as an ordinary user and switching to root within the session gets the expected ...
2
votes
1answer
854 views

Bash root to user. Best in same or separate script?

I'm working on a Linux Bash script that needs to start as root. At the end of the script, it builds a list of packages. This requires running as user. Then it will move the packages, which needs to ...
2
votes
2answers
283 views

What can I do to start a terminal in a X server at boot without giving away root priveleges?

The problem: I run Linux on an arcade machine with a monitor that accepts a 15kHz signal. I can't see anything until the X server starts and a modeline gets the GPU to output the correct signal. My ...
2
votes
1answer
2k views

Content of root's home directory in OSX

What is stored in root's home directory on OSX? What happens if you delete it on accident? Here's what's in my current root home folder. OSX:~ root# ls -lash total 8 0 drwxr-x--- 5 root wheel ...
2
votes
1answer
508 views

Linux Mint root app theming breaks when changing controls

So, this is a strange occurrence, which seems similar to other questions but which I've not been able to find a reference for. Maybe my Google-Fu is not strong right now. It seems to be a common ...
2
votes
0answers
245 views

Automatically start named pipe reader on startup?

I'm trying to run a script with root access from PHP. I can't do that because Apache's user, www-data, don't have root access because of security reasons. To fix that, I was advised to use a named ...
1
vote
0answers
20 views

Need to run scripts/commands with root privileges for user selfservices

The core of the topic is a very a common but I am not satisfied. I have a script looking for a pid and running the kill command on the pid if found. So I chown the script to root.root and add 4755 ...
1
vote
0answers
37 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 ...
1
vote
3answers
649 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 ...
1
vote
0answers
394 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
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 ...
1
vote
0answers
131 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 ...
1
vote
0answers
28 views

How can I list which users can login without key auth?

I have recently been charged with a large amount of Ubuntu servers that are exclusively accessed via private/public SSH authentication. There is no information regarding how these servers were ...
1
vote
0answers
171 views

root user renamed as qroot - unable to su or sudo

Mysteriously, on our public SSH server, root user is now showing up as qroot. All the files owned by root are now owned by qroot. id qroot shows qroot is UID 0 /etc/passwd file is owned by qroot /...
1
vote
3answers
625 views

SSH + Change password using root

I'm trying to connect to various servers to change the password of a specific user. I need to build a Script to do that thing, the complexity is that I have to use sudo and send the password in order ...
1
vote
0answers
189 views

Root login doesn't work with Synaptic and Apper

I have an odd problem. I have tried to use Synaptic so I can install a package. The system asks for the root password but won't accept it. I can start a terminal window and start su with the root ...
1
vote
0answers
595 views

What Can I Do To Setup a Root Login In Debian 9?

I have been using Debian steadily since Sarge. In each version I have been able to login as root, with GUI, to do my administrative needs. I NEVER use root for day to day use. I want to be able to ...
1
vote
0answers
106 views

Trying to install Funtoo (inside VirtualBox only for now, for testing) with ZFS for boot/root - failed install and booting

Following guide https://www.funtoo.org/ZFS_Install_Guide everything works great, until in section "Create optional Datasets" at "Build directory": zfs create -o mountpoint=/var/tmp/portage -o ...
1
vote
4answers
3k views

Cannot reset root password via grub

I am using Redhat Linux 5. I forgot the root password i set while installing linux OS. After rebooting right after the installation, entering root password is needed of course. So the following is ...
1
vote
0answers
45 views

Save IP in remote host every time connection is up (as non-root-user)

I have a dynamic local Lan IP at work (temporarily), but in order to connect from home, I ssh to the host A (static IP) and from there to my machine. However, since the IP changes, I would like to ...
1
vote
0answers
2k views

Adding “open as root” to the right-click context menu of nemo

Since many files and applications seem to need root for proper operation or for allowing edits and having to use the console is too inconvenient, I'd like to have right-click context menu options for "...
1
vote
0answers
139 views

Prefer sudo over su by using a separate user with full sudo “privileges”?

Can I combine the security of su (which is in my view, and broadly speaking: not everybody can be root) and the convenience of sudo (password timeout) if I: create a user "admin" (for example) give ...
1
vote
0answers
671 views

Cannot change linux password

I have Debian GNU/Linux 9.0 installed on my PC and it is login without password (normal and root users), I tried to changed password using passwd command but it is not possible I received only the ...
1
vote
0answers
77 views

When to make ROOT the owner of Disks, Directories, Files

I am just getting into Linux and am having problems with the subject of OWNERSHIP.... I seem to understand PERMISSIONS, GROUPS and USERS, but when it comes to setting OWNER I am confused as to when ...