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
21 views

cant access Jenkins user root access. in ubuntu18.04

I changed /etc/sudoers: # User privilege specification root ALL=(ALL:ALL) ALL jenkins ALL= (ALL:ALL) NOPASSWD:ALL It works in root user but the mount command does not work in jenkins user in: ...
0
votes
1answer
54 views

What is the default password of root for Centos?

I building a docker image from a Dockerfile (downloaded from git hub). In the Dockerfile, there is such a line: RUN useradd -m user USER user after this all the subsequent procedures happened under "...
0
votes
0answers
24 views

Booting Linux (rootfs) on Windows

Let's say I have Linux on USB (Ubuntu Debian 6, Kernel 2.6) and I want to boot it on my Windows 10. How would I do it? Folder structure is like this: folder structure
0
votes
0answers
21 views

About Cpanel Trial Version [closed]

I did a lot of research, but I need your help on something. I've set up a trial version of Cpanel and can't log in to corporate mail now. Direct access links to Maile also do not work. How can I ...
1
vote
0answers
3 views

Send Email as Root *Before* User Login?

I'm not sure I'm on the right forum for this, but I found some hints in another thread that suggest the knowledge base might work out here. I've got a startup script running as root (managed by ...
0
votes
0answers
7 views

Can you force enable NFC in the android system files? [migrated]

Problem: My sister's android phone has got a custom android rom that doesn't use the NFC functionality of the phone. Is there a way to edit say system files to "force enable" the NFC feature in the ...
1
vote
1answer
4k views

Difference between sudo su - root vs sudo su -

I know how is working 'sudo su - ' or sudo. But not sure why after sudo wave I just can't login on root with 'sudo su -' but with 'sudo su - root' im able to. Where is the difference? btw. Ldap is ...
7
votes
3answers
15k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
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
115 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 ...
15
votes
4answers
66k views

Set password for root on virtualbox ubuntu

I loaded ubuntu into virtualbox. It all works well but it occurred to me that I was not asked (or did not setup) a root password. I want to use root on occasion, but I cannot seem to find out how to ...
0
votes
3answers
9k views

How do I fix an invalid /etc/sudoers file if root access is disabled?

This pertains to my Raspberry Pi, on which I have Raspbmc installed. I do realize that there is a Raspberry Pi StackExchange site, but I figured I might get more eyes on this problem here. The issue ...
0
votes
2answers
111 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 ...
27
votes
6answers
74k views

Where's .bashrc for root?

I know it's not best practice, but on my dev system I login as root. What's the equivalent of the .bashrc file so I can alias some functions? I've found the /etc/bash.bashrc & /etc/bash.bashrc....
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
0answers
29 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
62 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, ...
4
votes
3answers
26k views

Unable to lock the administration directory (/var/lib/dpkg/) error when trying to install unrar from the terminal in Ubuntu

I am getting this error when trying to install unrar unarchiver for .rar files from the terminal in Ubuntu. E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory) E: ...
0
votes
0answers
97 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
53 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
2answers
420 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)?
1
vote
1answer
106 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 ...
2
votes
2answers
229 views

How to prevent Ubuntu/Debian users from accessing apt-get or downloading from the web, etc?

Is it possible to have a user in Ubuntu/Debian that does not have access to synaptic, apt-get, dpkg and cannot even download anything from the Web, but has root privileges otherwise? Original post (...
2
votes
2answers
5k views

Why does Linux Ubuntu/Mint lack a root account?

This is a question about Linux Ubuntu (and Mint). As a new user to the Linux system, I was interested in the fact that Ubuntu doesn't allow the PC owner to be root/administrator. Regardless of whether ...
1
vote
3answers
3k views

How to disable root login from login prompt but allow switching to root

I would like disable logging in as root on the login prompt but it should be possible to 'su' to root, give password and login. Any help will be appreciated.
7
votes
3answers
6k views

Adjusting $PATH in /etc/profile does not affect root

I added a directory to PATH in /etc/profile. This works for my user account but not for root. It's easy to add it to my /root/.bashrc but I would like to understand what's wrong. It's a mostly ...
289
votes
9answers
288k views

chown is not changing symbolic link

I'm trying to change the user/group of a symbolic link with the command: $ chown -h myuser:mygroup mysymbolic/ But it's not changing. I'm logged in as root. The current user/group is set to root:...
0
votes
1answer
141 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
88 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/...
385
votes
7answers
469k views

What is the “You have new mail” message in Linux/UNIX?

Sometimes, when I log into a box and 'su' to root, I get a cute little message saying I have mail (thank GOD it's not AOL). Where is this mail? What does it contain? Who/What sent it? How important ...
0
votes
0answers
27 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
0answers
36 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
33 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
351 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
2answers
56 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
1answer
510 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 ...
6
votes
2answers
14k views

What's default root password for docker official Centos image

This is regarding Docker official Centos6 and Centos7 images There are 3 separate but related questions: (1) When started using "docker RUN centos", what is the root password and how to find it? (2)...
0
votes
0answers
24 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 ...
0
votes
3answers
8k views

How to restore sudo privilege with Linux live CD?

I'm running Linux Mint 11 and I lost the privilege to use sudo, apparently the result of accidentally removing myself from the admin group. When I use the groups command to list the groups I'm in, it ...
6
votes
3answers
4k views

Use another user's .vimrc and .vim/

I know that I can :source /path/to/some/.vimrc to load my user's .vimrc when running as root, but how can I use the entire .vim/ directory as well? Is there a startup option for using /home/user/.vim/ ...
1
vote
2answers
1k views

NTFS-3G is only mounting external drives as read-only

I'm currently running RHEL 5.5, and I installed the ntfs-3g utility from here: http://www.tuxera.com/community/ntfs-3g-download/. I have also followed their instructions for auto-mounting NTFS USB ...
1
vote
1answer
281 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
315 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.
1
vote
1answer
346 views

Can't login in with `su` on Fedora

I'm new to Fedora 15 and Linux. I've stumbled upon a problem while installing Oracle XE; I can't set environment variables or do anything else - any change I make won't stick. I'm using the terminal: ...
0
votes
0answers
203 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
892 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
41 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' ...
52
votes
3answers
125k views

Force logout a user

I When I logged into the machine as root and typed who to see which users are logged in, I found somebody else too logged in as root devuser pts/0 2011-11-18 09:55 (xxx.xxx.xxx.xxx) root ...
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
41 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.