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.

0
votes
1answer
16 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
74 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
50 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
78 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
20 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
76 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
26 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
149 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
41 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
19 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
134 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
102 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
288 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
182 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
364 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
39 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
55 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
32 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
60 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
31 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.
0
votes
0answers
62 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
547 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
25 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
33 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
88
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
60 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
79 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
253 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
887 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
306 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
260 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 ...
0
votes
0answers
67 views

I bought a brand new CPU and with WIFI completely turned off it downloaded a ROOT file, took special permissions, and turned the event logger off

I downloaded an individual usb flash file shortly after starting the Windows 10 computer for the 1st time. McAffe said the USB drive had 7 safe files but I could only visually see 6 files. I selected ...
1
vote
2answers
288 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
72 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
188 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
150 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 ...
1
vote
4answers
917 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
273 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
175 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
81 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 ...
0
votes
0answers
36 views

I screwed up and cygwin is in my root drive C:// Does anyone know how to correct this?

I followed the directions for installing Cygwin and it is now in my root drive. Does anyone have a way to move it out of the root directory and into someplace safe?
0
votes
1answer
698 views

Invalid Argument when mounting /system as (RW)

I have Kingroot (for root access) and Terminal emulator installed on my device. I am using the following command to mount the System directory on terminal: mount -o rw,remount -t ext4 /system and ...
0
votes
1answer
97 views

How to run a program (steam) installed by another user?

I'm really new to Linux. I'm currently running an Ubuntu version and I would like to run a program that was installed by root as a non root user. Or how do I install a program for all users? Thank ...
0
votes
0answers
69 views

Create ISO Image from Root Server on Runtime

is anyone here who knows if its possible to create a ISO-Image from a running server to backup all datas on it? I'm planning to create a backup tool that creates a ISO Image from the whole server and ...
1
vote
2answers
313 views

Running docker containeras non-root user?

Is there a way for users without root access to run a docker container? To be clear, I am not asking if I can create a user in the container that runs as non-root. Rather, I need to know if and how a ...
1
vote
1answer
632 views

When I use root to open Sublime Text 3, all packages are missing

With Sublime Text 3 running under Debian Linux, I have installed several packages as a normal user, but whenever edit any file I have to write the administrator password. So I used su and subl to ...