Stack Exchange Network

Stack Exchange network consists of 174 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 name of the main administrative user commonly used in *nix based systems.

-1
votes
0answers
13 views

Please help! Bootloop. Can't get into recovery [migrated]

My wife, unfamiliar with rooting, agreed to update my rooted Moto C Plus when it requested an update. Needless to say, that didn't turn out well. It started booting to TWRP. I tried finding a ...
0
votes
0answers
7 views

How to copy or backup (rooted) device settings to an identical device? [migrated]

I am searching for days and i am really confused on what should i do and i decided to look for help here. I have a rooted by default android device (box) and I have change some of the device settings ...
0
votes
1answer
22 views

Creating SSH keys to login into remote machines as root user

I have followed the process of creating the public and private keys so that I can login in to remote system without a password. But I would like to login into the remote system as root user without ...
0
votes
2answers
61 views

Low Disk Space on “Filesystem root” error on openSUSE Leap 15

Problem Apparently I am running low on disk space on my root partition. At the time of installing my OS (openSUSE Leap 15 on a VM) I chose the default partitioning. Now I get the warning/error Low ...
0
votes
0answers
23 views

How to change root directory from different device (e.g. /dev/sdb1 to /dev/sda2)

I have an Ubuntu when booted it has the root system is stored under /dev/sdb1, as can be shown with df command: the fdisk -l looks like this: My question is how can I change the root system from /...
1
vote
0answers
50 views

Can't delete file and folder in Ubuntu 16.04 with root access

I tried to delete file 'lock' file in directory /var/lib/apt/lists with with sudo and with sudo -s, but system shows message that operation not permitted, also I can't open /var/lib/apt/list/partial, ...
0
votes
0answers
57 views

Samsung Drivers Won't Work When in Fastboot Mode

I have made the mistake of trying to root my phone. Which is fine, but it's a lot more complicated than I thought it was, but since I have asperger's, once I start something, I feel like I have to ...
0
votes
1answer
32 views

chroot erase and overwrite the rootfs. Is it possible to mount a copy of /proc and /sys?

In my chroot I need /proc and /sys and /dev. I am happy to bind-mount /dev since it is a temp fs. But /proc and /sys are part of the rootfs. In my chroot I need to erase/re-format the rootfs (which ...
1
vote
1answer
94 views

How can I give the root (superuser) the ability to log in to a desktop like all the other users?

I used to be able to login to a desktop environment in Linux Mint even as the root superuser until I had a partition disaster and had to re-install it. Now I can't remember the terminal command I ...
0
votes
1answer
109 views

Debain(buster) su not working properly, command not found

For example: I installed ifconfig First i become root with "su" Now I write "ifconfig" and get: "command not found". I write "sudo ifconfig" and now it works. This seems to happen with a lot of ...
0
votes
0answers
84 views

Removing directories from PATH

I am trying to run rkhunter, but it is giving me this output: stack/security/rkhunter-1.4.6 ➜ sudo rkhunter --check Password: Invalid BINDIR configuration option: Invalid directory found: ~/.dotnet/...
0
votes
0answers
25 views

Rhel - How to create non root user, to administrate app installed by root?

Installed Syslog-NG as root, because the syslog-NG and its dependency packages like Eventlog is supposed to be installed in custom folder /app/syslog-ng. But, going further, we would like a non-root ...
0
votes
2answers
96 views

Execute a script as root when non root user logs in

I've seen this question asked before here and here but they're pretty old and I haven't been able to get any solution to work. Basically I need to run a script or command automatically as root each ...
0
votes
0answers
34 views

How can I get yum to work without root?

If I make all folder in the root directory world writable, something like: sudo chown 777 -R / Would this enable yum to work without root privileges? If not, is there a way similar to this to make ...
0
votes
0answers
31 views

What's the difference between `ssh -lroot host` and `ssh root@host`?

I'm used to doing ssh -lroot hostname when ssh-ing into a server. Others use ssh root@hostname. What's the difference?
0
votes
1answer
368 views

How to avoid “root is not allowed to run sudo”?

I am trying to execute some third-party installer script (ansible tower setup.sh) which needs to be started as root or via sudo as some of the commands rely on root privileges. However some commands ...
0
votes
2answers
51 views

Which Linux capability is needed to write to a device?

I set up Home Assistant in a Kubernetes container. It needs write access to the /dev/ttyACM0 device on the host computer (i.e. the computer that runs the container). It works if I make the container ...
0
votes
0answers
21 views

How to remove sudo dependency for programs installed using bioconda?

I installed a program using conda and pip with sudo privileges because the program requires tons of dependencies which installations are root required. After successfully installed the program, I was ...
1
vote
1answer
229 views

Saving SSH key in home instead of root

When I try to create an SSH key using sudo ssh-keygen -t rsa I get the request: Enter file in which to save the key (/root/.ssh/id_rsa): However, I would like the file to be saved in /home/user2/....
0
votes
1answer
227 views

What’s the difference between “su” and “su -“

In a UNIX machine, what is the difference between su and su -? Is there even a difference? I know that su - is the standard.
0
votes
1answer
331 views

How to reset root password on openwrt like embedded linux

Yesterday I did one stupid thing. Removed encoded root password from /etc/shadow on my router. root::17459:0:99999:7::: Router firmware is a openwrt like embeded linux with ssh access. Now I can't ...
0
votes
0answers
195 views

Root user no longer exists

I'm running macOS Server 5.6.1 on High Sierra (10.13.4) and I was trying to modify a system launch daemon plist file the other day as my apache installation wasn't working after migration. sudo wouldn'...
1
vote
1answer
711 views

chmodding files with an SELinux security context / ACL

Okay, so I have a bunch of bash & python scripts that I've written, all just chilling together in one big directory. Well, actually there are separate subdirectories, but they're all nested in ...
0
votes
0answers
40 views

How could I list all users with admin priviledges on CentOS?

I did the following commands: sudoers users list: for USER in `cut -d: -f1 /etc/passwd`; do sudo -U $USER -l; done | egrep -A 1 'may run' users on root group: getent passwd | grep -ve 'nologin' ...
0
votes
0answers
57 views

Start desktop for specified user from background service

I'm using a Ubuntu 17.10 with Gnome Desktop installed. In my rc.local file I'm starting a java program that communicates with a TCP server. As soon as a certain sequence is received by this socket ...
0
votes
1answer
37 views

How to make an app always open with root permission in debian

I just simply want to click the app icon, give the root password and use it.Is there any way to make this happen?I am using Debian 9 cinnamon. Thanks in advanced.
0
votes
1answer
62 views

How can I reserve an specified amount of space for root on macOS?

How can I reserve an specified amount of space for root on macOS? I want to stop user applications and myself from unknowingly making the disk full, and always have some free space available.
0
votes
0answers
34 views

Change root to other name in CentOS

I have installed a CentOS VPS on which I am trying to change root to some other name, how can I do it and then disable root login name.
1
vote
0answers
71 views

Logging all SSH commands through a proxy

Problem: I have a production server I don't trust anyone with. However I can't be the only person to be able to access it. Realization: I need to allow people log in as root, but through a proxy so ...
1
vote
1answer
701 views

On ubuntu server: run Chrome as a different user (not root) not working

[I'm a newbie, so tx for the patience] I tried to run chrome on an ubunto server and got this: root@stender:/opt/google/chrome# ./chrome.....ERROR:zygote_host_impl_linux.cc(90)] Running as root ...
0
votes
2answers
75 views

How can I use root as my primary email address?

I have a website (say, mydomain.com). I currently have the email address user@mydomain.com, but I'd like for the email address root@mydomain.com to be my personal email address. Is it possible to do ...
0
votes
0answers
27 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 /...
0
votes
0answers
35 views

How to reset a root password using the passphrase ?

I've lost my root password and I would like to recover it (as you might have guessed). I have the passphrase but don't know what I can do with it ? Thanks
87
votes
2answers
16k views

Why is the most powerful user on a Unix/Linux system called “root?”

Somewhat inspired by this other question on the use of the term “Super User”, why the heck is the most powerful user on a Unix/Linux system called root? Why not admin, sysop, base, king or something ...
55
votes
2answers
6k views

Where did the term “superuser” originate?

Where did the term "superuser" originate? Is it a shortening of "supervisory user", or is it just an indicator of the level of power one such user holds in a system?
-1
votes
1answer
63 views

AWS : How to switch as “root” user?

I have new created EC2 instance in aws, and able to login as EC2-user using private key but want to login as root to install packages. Not able to switch as root tried sudo - but it asking for ...
0
votes
0answers
23 views

How to see root login without last command?

is there a way a user can login to the system as root that "last" command don't show any info about it? I recently hired a person to manage my new nginx powered vps but I didn't buy his monthly ...
0
votes
1answer
88 views

Unable to login after manual edit of /etc/passwd

Had a trouble with transmission daemon's permission. It keeps using default debian-transmission even after editing /etc/init.d/transmission-daemon. So I edited the /etc/passwd and set 0:0 to debian-...
0
votes
1answer
315 views

Change user and home folder name of own account and now can't unlock admin rights

This are the instructions for changing the user and home folder: https://support.apple.com/en-us/HT201548#shortname I didn't follow this warning: The administrator account needs to be a different ...
0
votes
1answer
1k views

How to startX as non-root user inside the rc.local?

I am trying to start startx as non-root user in my Ubuntu-server 16.04(Linux nanopim1 3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l armv7l armv7l GNU/Linux) with openbox installed ...
0
votes
1answer
467 views

How to delete a locked folder on Mac?

I have been trying to remove a locked folder from my Mac. I am logged in as admin. When I try to delete it from Finder, it says The operation can’t be completed because the item “X” is locked. I ...
0
votes
1answer
290 views

file permissions are not changing even with root access - kali linux

I've got a strange problem with my dual boot system (windows and kali linux) I login to the root account but when I try to change the permissions of any file , I just can't ! it gives me no error or ...
1
vote
2answers
351 views

How to create a sudo user if there is no wheel group available in rhel?

I mean, if there's a user with username:name how to make him a sudo user without adding him to wheel group(intention is if wheel group is deleted)?
0
votes
1answer
74 views

How to allow both root and restricted users in SSH?

Is it possible (and if so, how) to do the following with openssh-server: to be able to authenticate root user with a key and no password to be able to authenticate a non-root user with a key and no ...
0
votes
1answer
206 views

Cron to check (and fix) all root file permissions?

So I recently went through the wonderful adventure of fixing the /usr/bin/sudo file after it's permissions have been changed. This was on a system where it had been intentionally reconfigured to make ...
3
votes
1answer
229 views

Not able to write to directory despite correct permission and group

Have been strugling with a wordpress-virus attacking and Writing files in one of my sites. One strange thing i noticed is that even with the root user i am not able to write to the directory. The ...
3
votes
4answers
1k views

Should I use sudo in a script or sudo an entire script?

I run a small group of macOS machines for students (say 20) and they all need to be setup with things like homebrew and other packages and applications. I'm writing a bash script to automatically ...
0
votes
1answer
335 views

unset HISTFILE cannot disable root's .bash_history

In order to make the behavior system wide, I put unset HISTFILE in /etc/profile. Normal users no longer have .bash_history but root still does. Anyone can tell me what I am doing wrong here? Or what ...
0
votes
1answer
200 views

Why is root sometimes not in the sudoers file, by default or convention?

On many varieties of Linux and Unix, the root user is not allowed to use sudo. Why is this? Is there any security concern with the root ALL=(ALL) ALL present in some other varieties' default ...
1
vote
0answers
93 views

Become superuser in firefox os?

I have a core firefox os device. Now it is having some problem with some functions like settings. I have tried to repair it with adb but whenever I try to do something the error message like this ...