We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [root]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

Root cannot access a directory

Long time ago I made a series of folders where I wanted to mount smb network drives at boot time. It didn't work somehow. Today I tried again, having some more time to spend, and I realized the ...
0
votes
1answer
15 views

Cannot access to /etc/sudoers [on hold]

I tried t execute commands without using sudo .I add to my username this line in the sudores file : username ALL=(ALL) NOPASSWD: ALL now, this is not working, also I can't access to sudoers to delete ...
1
vote
1answer
15 views

Changing user for supervisor - error CRIT Set uid to user

I changed user for supervisor from root to non-root called dev. All is good, supervisor is running as dev: me@server$ ps aux | grep supervisor dev 25230 0.2 1.0 60404 21392 ? Ss 21:42 ...
-2
votes
1answer
29 views

How to fix “Please login as the user ”xx“ rather than the user ”root" on azure ubuntu 1804 vm?

I create an azure ubuntu 1804 vm with no root user and ssh public key. Then I try to use the script of how to enable root ssh public key login with no root account and sshpass and sudo? But I got ...
-1
votes
1answer
17 views

how to enable root ssh public key login with no root account and sshpass and sudo?

I have created an azure vm server which is ubuntu 1804 and I need to enable root ssh public key login with it. Azure do not want me to enable root ssh public key login when the server is created, so I ...
11
votes
3answers
62k views

How to give user root permissions?

I just installed Arch. Works great. I created a new user, logged in with it and now I'm trying to install several things with pacman. But I keep getting the error: error: you cannot perform this ...
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 ...
1
vote
1answer
1k views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user (...
0
votes
1answer
60 views

OS incorrectly switching between root and sudoer user

I have 3 users in my server: root user1 user2 When I try to change my current user from user1 to user2 by using the command sudo su user1, my operating system sometimes changes instead from user1 ...
1
vote
2answers
47 views

red terminal font when root

I'd like to make happen in RHEL/CentOS 7.6 anytime you do su and become root I want the terminal prompt color in that terminal to become red for the duration of that su session. Type exit to go back ...
-1
votes
1answer
32 views

In FreeBSD, what flag or file designates 'root' and 'toor' as immediately logging in with su privilege without needing “su” after login?

Obviously it's widely recommended not to log in directly as a superuser account, but I'm curious. What is the flag or setting that FreeBSD uses to recognise those accounts that automatically gain ...
0
votes
2answers
977 views

Unable to change the settings in meld when I launch it with sudo

When I launch meld with sudo, su, gksu or gksudo I have the following output: (meld:1666): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed (meld:...
0
votes
1answer
28 views

Cannot loggin into root: failed to execute q: No such file or directory

So this morning I tried to login into my root and I got an error saying: su: failed to execute q: No such file or directory. In /etc/passwd everything seems to be normal. Tried logging in through: ...
1
vote
5answers
2k views

What's the difference between sudo su vs just su?

I see a lot of posts out there that say you type in sudo su to get an interactive prompt with root privileges, and I see equally many posts debating the pros and cons over sudo -i vs sudo su. Here I'...
5
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 ...
1
vote
0answers
20 views

I need to install a secure package from git globally

I need to add install a package using npm globally. The command to install it is npm i -g git+ssh://git@gitlab.companyname.io:1234/packagename/packagename.git To use this command I need to add ...
1
vote
1answer
1k views

Why gnome-terminal tells me “There is still a process running” while logged in as root?

I'm using gnome on Debian Jessie. When I tried to close terminal after logged in as root, it told me like in the picture below. What should I do to prevent this from happening again? Is it a bug?? ...
0
votes
0answers
42 views

Cannot open access to console, the root account is locked after upgrade linux mint kernel

According to pervious question: Halt in Linux mint logo after update and upgrade After changing the GRUB file to: linux /boot/.... ro quiet text When I suspend the OS, I am going to loging page: ...
18
votes
1answer
1k views

/etc/shadow permissions security best practice (000 vs. 600 vs. 640)

We have an automated baseline check that raises an alert if the permissions on /etc/shadow aren’t set to 000. The staff who receive these alerts have started to question the sanity of 000, since root ...
5
votes
4answers
63k views

adding a sudoer in debian

After a long search on the web, trying everything I can find I came to ask you guys, how can I add an existing user to be a sudoer? I've tried usermod -a -G sudo user and also adduser user both ...
3
votes
1answer
73 views

Clearing linux caches without root privileges

In order to clear caches, I usually invoke # echo 3 | tee /proc/sys/vm/drop_caches This requires root privileges. Why do I need to do this occasionally? Because it can have a huge impact on the ...
20
votes
10answers
59k views

Vim Error E138: Can't write viminfo file $HOME/.viminfo!

I'm afraid I've run into something rather strange. When I open a file normally, vim README.txt, everything is fine. But upon sudo vim README.txt, the file renders blank, and gives me a E138: Can't ...
0
votes
0answers
32 views

Run cd command with superuser priviledges

Is there a way to run the cd command with superuser privileges to gain access to directories that are owned by root? When I run sudo cd <path>, I get sudo: cd: command not found.
0
votes
0answers
17 views

How do I automatically authenticate as superuser on new terminals without password (i.e; sudo -v)?

I want new terminal windows be ready so when I need to run elevated commands I'm not asked for authentication. I tried setting up the stock Terminal in Fedora's GNOME (and also in macOS') to run the ...
2
votes
2answers
68 views

How can I unmount root and run Python script that modifies the whole disk using SSH?

I want to connect to a Debian or CentOS device using SSH and modify its whole disk(just one 30 GB disk that has 5 partitions, 5th is Linux root) by writing a new raw disk image file and new partition ...
1
vote
1answer
77 views

Linux ioctl VT_GETSTATE fails if process is run manually

I'm using the ioctl syscall on Linux to get the current tty in a C program. I don't know why the ioctl fails if the program is run manually (as root) while it works as expected if the init.d script ...
1
vote
3answers
94 views

Preventing users from sudo'ing to the root user

I'm searching for a way to prevent my system users to sudo into the root account in any way. I don't mean logging to the root user by SSH, but specifically by sudoing ( sudo -s ) ( sudo su ) etc. ...
0
votes
1answer
28 views

make remote backup copy of a file belonging to root

I have created a somewhat clumsy solution and I really don't like it, I would like to improve it. Here is the problem: I have a headless server that maintains a database that is stored within /root/....
1
vote
1answer
36 views

Question on modifying shell initialization files to color root's prompt red during “su”

I am in the midst of learning Linux, specifically the BASH Shell. I have been trying to edit the initialization files so that whenever I su into root, my prompt will turn red. I am using the code ...
20
votes
1answer
52k views

Difference between sudo user and root user [closed]

The /etc/sudoers file lists which users can do what with the sudo command The root user creates and modifies the /etc/sudoers file. This concept is difficult for me to understand. If all users ...
3
votes
1answer
934 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 ...
0
votes
0answers
27 views

Interpreting file permission

I am doing an audit of the Linux system and it involves reviewing permits on sensitive configuration files. I am supposed to verify that no unauthorized users have write permission on them especially ...
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 ...
0
votes
1answer
4k 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 ...
0
votes
0answers
72 views

How to fix XOpenDisplay Failed

I have Windows 10. I installed Ubuntu and when I want to run root at the Ubuntu Prompt I get this error: PopupLogo, XOpenDisplay failed ------------------------------------------------------------ ...
1
vote
2answers
70 views

Allow rsync to be run remotely as root, but only to read files. A read-only root user?

I would like to use rsync-over-ssh to pull backups from many remote traget machines to a central backup. I could do this as the root user, but that would allow me to accidentally run a bad rsync ...
0
votes
2answers
10k views

How to autologin as root to mint 17.1

I would like to know how to autologin as root on mint 17.1? I've been able to login as root from the login screen (by enabling root access in login window settings and changing the theme to clouds). ...
0
votes
1answer
143 views

What is AntiX's root default password?

Prompted for a system password on an AntiX Live USB/CD and it's not root...
0
votes
1answer
51 views

Why an installed package has no affect for sudoed user?

I've installed Debian 10 with Xfce DE. Thunar app is the default file manager. On Edit > Preferences > Advance Thunar shows a warning message. This message is about gvfs dependencies to ...
10
votes
2answers
66k views

can't ssh into remote host with root, password incorrect

I have a remote host, previously I can ssh into it with root and password ssh root@remote_host or I ssh into it first using a regular user account ssh esolve@remote_host and then su root and input ...
0
votes
1answer
2k views

Root access denied in LiveUSB of Portues

I am on Live Linux USB of Porteus linux and I copied it to RAM. I want to access root folder for making changes so that settings gets saved. but this is showing up
1
vote
1answer
1k views

Is sed run as a different user?

I have a sed script that changes some content in /etc/shadow. The actual change isn't important, I will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow ...
0
votes
1answer
83 views

Are there some Unix or Unix-like operating systems that still treats the “root” user as the superuser?

Linux does not treat the "root" user as the superuser anymore, but rather Linux uses capabilities which gives a process privileges (I think BSD does a similar thing). So for example in older Linux ...
1
vote
1answer
18 views

access to root account using grub mode

I've just read about How To Fix Broken sudo Command in Ubuntu and I used grub menu on my linux virtual machine to solve my problem and add my user account to sudo group. So I would like to know if in ...
0
votes
0answers
56 views

SSH: login as user A, but once logged in, prompt appears as ROOT

I use putty to connect to a remote Gnu/Linux (Red Hat) through SSH on port 22, direct to IP. First it asks for user name. I enter it. Then it asks for password. I enter it, Then it connects. But ...
3
votes
0answers
22 views

How to create a directory behalf on root user? [duplicate]

I have a script: [postgres@LaHarch ~]$ cat mkrundir.sh #!/bin/bash mkdir /run/postresql With attributes: [postgres@LaHarch ~]$ ll mkrundir.sh -rwsr-sr-x 1 root root 74 Aug 26 18:53 mkrundir.sh ...
0
votes
1answer
79 views

How to enable ssh for a user with root permissions?

I have added a user test with root permissions. In my sshd_config file I have kept permitrootlogin as No, to block ssh for root. I am not able to do ssh for root which works fine, but the issue is i ...
0
votes
0answers
533 views

How to unlock the login for the root?

How to unlock the login for the root? In Ubuntu 14.xx and previous versions of Ubuntu, it was possible to log in to the graphical session as root. Now i can't do this anymore. How to unlock the root ...
1
vote
0answers
44 views

Can I change root's domain name in emails?

I already changed my root alias to my email so that whenever a email is sent to root, i get a copy of that. Which is perfectly working fine. Now, when i receive an email, the From address is : root @ ...
-4
votes
1answer
113 views

Why does “sudo ls ~” show the contents of /home/username rather than /root?

When I'm logged in as username, why does sudo ls ~ show me the contents of /home/username rather than /root? I thought that sudo executes a command as root, in which case ~ would represent /root. ...