Questions tagged [root]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
100 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
63 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
238 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
72 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
122 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
124 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
50 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
162 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
202 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
87 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 ...
0
votes
0answers
41 views

Raising permissions of account “dummy” when executing command from “root” as “dummy”?

Context: While trying to execute command su a -c task as user dummy when being logged (with sudo su in as root on Ubuntu 16.04, I receive the following error message: root@DESKTOP-344ab:/home/dummy#...
0
votes
1answer
496 views

change root password in CentOS 7 [duplicate]

I was reading about changing root password in CentOS 7. it's totally different from centOS 6. change root password I was wondering about the steps for example why should I change ro? what ...
1
vote
0answers
101 views

Higher privilege level than root on macOS [closed]

MY version of the macOS is 10.13.6 What I want to do is get a privilege that is higher than the root privilege. The reason I want this is because I would like to create a completely undeletable file/...
1
vote
2answers
235 views

rsync as root - does it change the ownership of synced files?

I'm going to be using rsync to sync an old home folder onto a backup drive. I'm thinking of using rsync as root. Is there a way to avoid changing the ownership of the files etc I copy?
0
votes
0answers
26 views

archlinux: running dolphin file manager as root: how to increase font size for drive listing and menu bar?

when running dolphin in root mode, the drive listing on the left panel and menu bar on the top are displayed in very small font: is there a way to increase the font size to make it more comfortable ...
0
votes
1answer
287 views

use chroot to lock down sftp access without root owning folder

Everything I am reading says that for chroot to work with sftp root has to own the folder. I want to make it so a user can only sftp to a sub-directory in their home folder like /home/user/some/folder....
0
votes
0answers
41 views

Open file manager as root resulting in repeated password requests.. why? Any solution?

With the new Ubuntu 18.04 base of the Linux Mint 19, I had to change my Bash function in .bashrc in order for it to work as follows... I am running the following as a user, it is supposed to ask for ...
0
votes
1answer
75 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
55 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
540 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
168 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
377 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
101 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
136 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
88 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
2k 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
221 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
240 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
85 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
127 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
653 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
44 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
250 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
69 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
64 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
93 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
3k 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
1k 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
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
86 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
199 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
35 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
141 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
91 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
389 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
159 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
758 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 ...