Questions tagged [root]

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

Filter by
Sorted by
Tagged with
-1
votes
2answers
86 views

how to start a script with root privilege on boot?

I tried with systemctl and with crontab without success. here is the script: #!/bin/bash cyberghostvpn --country-code AU --city Brisbane --connect rights : -rwxr-xr-x 1 pat pat 71 nov 28 13:04 ...
1
vote
1answer
40 views

Why would a ssh password-based login fail?

I currently use ssh keys to connect to my server (Ubuntu 18.04). I would like to allow (in a specific, limited scope) the ability to login with passwords. Whenever I try, my passwords fail. below is ...
0
votes
0answers
13 views

How to run pcmanfm as root but restricted to specific folders?

Using the terminal. How to run Pcmanfm (PCMan File Manager) as root but also restrict to specific folder? Run pcmanfm as root and only allow it to access this folder: /home/user/Pictures
0
votes
1answer
44 views

Can't access some commands when logged in with non-root user (even after “su root”)

So, i don't understand whats happening here. I've set up a Debian 10.2 Server and configured like i did before with other Servers. Everything works fine, and because it's a local Machine and i am ...
0
votes
0answers
16 views

Crontab -l command delete this contrab that is off the root?

I cannot seem to delete this file which is located off of the root, not a user, and is displayed by the contrab -l command. -r has been tried and isn't working, perhaps because the user is root. I'm ...
4
votes
0answers
52 views

Stop systemd user services as root user

I have a systemd A@.service that every user on the server can start with systemd --user start A@1.service. As root I would like to stop that service for all users when we do maintenance. I haven't ...
1
vote
1answer
36 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 ...
1
vote
1answer
26 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
46 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
26 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 ...
-1
votes
1answer
37 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 ...
1
vote
2answers
52 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 ...
0
votes
1answer
67 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 ...
0
votes
1answer
36 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
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 ...
0
votes
0answers
77 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
2k 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 ...
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.
3
votes
1answer
79 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 ...
0
votes
0answers
18 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
77 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
90 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
122 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
32 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
40 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
107 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
90 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
1answer
200 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
55 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 ...
0
votes
1answer
84 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
20 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
97 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 ...
1
vote
0answers
45 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 @ ...
0
votes
2answers
169 views

Difference between chmod +x vs sudoing an executable

A user can execute an executable by : sudoing which allows a user to run an executable as the owner or by setting the execute bit, chmod u+x (or should it be chmod a+x ?). So what is the real ...
0
votes
1answer
43 views

After change username, the new usarname not display in the login Window [closed]

I to change my username how here (answer from **Egil*) to say, but the username from the login window not change... Can Please anyone help me, thanks!
-4
votes
1answer
151 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. ...
3
votes
0answers
55 views

Why the user root doesn't have “w” permission of its home directory?

I'm on Oracle Linux 7.6. The user root apparently has write permission for its own home directory /root. But why the mode bits of /root shows dr-xr-x---. instead of drwxr-x---.? root:[~]# cat /etc/*...
0
votes
2answers
63 views

How can I change my usb from root to non-root permissions?

sudo mount -o rw /dev/sda1 /media I connect a usb and mount it with previous command. This automatically puts all folders into "root ownership" and does not allow me to add any files or rename ...
1
vote
0answers
24 views

Need to run scripts/commands with root privileges for user selfservices

The core of the topic is a very a common but I am not satisfied. I have a script looking for a pid and running the kill command on the pid if found. So I chown the script to root.root and add 4755 ...
-2
votes
1answer
55 views

Beeing root but without knowing password. Replacing binaries in /bin/ to bypass restrictions

I have an active root account, but I don't know my password. To be able to change my password or even to create another users (with the tool passwd) I need to know my password. So that creates a ...
0
votes
0answers
69 views

Root cannot stat: permission denied. But non-superuser can? [duplicate]

I wanted to copy .ssh folder from my old computer to a new machine. So on my new ubuntu I mounted my APFS drive (just read-only support) and did: ➜ adam_old ls -ld .ssh drwx------ 1 501 dialout 6 ...
-1
votes
1answer
52 views

Forbid the use of terminal to non-root user/s

On a linux-pc we have two user-accounts - the first is also the root-user and the second is only a normal-user. How can we make so that the second user will be unable to open the terminal?
0
votes
1answer
36 views

Bypass root password in linux live boot customized Ubuntu

I have a laptop on which i have Ubuntu running. This Ubuntu is on live boot and it is customized by the school. Whenever I turn on my laptop, it automatically logs me in as user TIPS. This user doesn'...
0
votes
0answers
23 views

Why does groupmems command ask for a password even when executed as root

The groupmems command that allows us to edit group membership has a peculiar trait: When executed as root, it again asks for root password when trying to edit any group membership for any system user. ...
0
votes
0answers
28 views

add commands for user in sudoers [duplicate]

I aware that root can add to sudoers pryvilege for user to run a specific command. Can I add to sudoers for example 'nano' to edit files restricted (rw) to root? or can I add 'cpan' to install modules ...
0
votes
0answers
344 views

Debian 10, su: Permission denied

As of right now, I create a brand new Google virtual machine. I upgraded the OS from Debian 9 (Jessie) to Debian 10 (Buster). For whatever reason, I cannot use superuser. Whenever I try, I get the ...
2
votes
1answer
228 views

How to disable root password in NixOS?

I tried setting users.users.root.hashedPassword = "*"; similar to sudo passwd -d root or user { 'root': password => '*', require => Package[ruby-shadow], } in Puppet, but after sudo nixos-...