Questions tagged [root]

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

1
vote
2answers
1k views

Can I sudoedit a file in a writable directory when using vimdiff?

When I want to vimdiff root files, I use the following alias, as per this suggestion. alias sudovimdiff='SUDO_EDITOR=vimdiff sudoedit' I can then use the following command. $ sudovimdiff /root/a /...
1
vote
3answers
601 views

SSH + Change password using root

I'm trying to connect to various servers to change the password of a specific user. I need to build a Script to do that thing, the complexity is that I have to use sudo and send the password in order ...
0
votes
1answer
66 views

timeout + root password + strace in one line

I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999 but that promps for entering the ...
0
votes
1answer
288 views

Rsync a folder as root on a rooted android device

I would like to get the content of the folder /data of my rooted android device. I tried with adb, but because /data/ is owned by root, I need to first copy the content of /data in the extcard, and ...
0
votes
1answer
2k views

How do I add myself to the sudoers file?

I attempted to add myself to the sudoers file a couple of days ago. I didn't want to have to login into root to do anything so I went into the file and inserted my name under root. Now I cannot use ...
-2
votes
1answer
132 views

What is root domain? [closed]

I'm taking a class in system administration and i find it hard to understand the concept behind Root domain. Can somebody explain in simple term the definition of Root Domain?
1
vote
0answers
174 views

Root login doesn't work with Synaptic and Apper

I have an odd problem. I have tried to use Synaptic so I can install a package. The system asks for the root password but won't accept it. I can start a terminal window and start su with the root ...
27
votes
5answers
9k views

How do file permissions work for the “root” user?

I have the following file: ---------- 1 Steve Steve 341 2017-12-21 01:51 myFile.txt I switched the user to root in the terminal, and I have noticed the following behaviors: I can read this file and ...
1
vote
1answer
104 views

Password Complexity Issue

Using RHEL6 Within the file /etc/pam.d/system-auth I have the following setting: difok=4 However I am able to successfully change root's password from abcd1 to bbcd1 It seems like I should not be ...
4
votes
1answer
2k views

change root password back to user password

Confession. I know little about linux, am an XP refugee, and try to do things I don't understand. I generally find it easier to find out how to do things, than to understand whether I should be doing ...
1
vote
0answers
576 views

What Can I Do To Setup a Root Login In Debian 9?

I have been using Debian steadily since Sarge. In each version I have been able to login as root, with GUI, to do my administrative needs. I NEVER use root for day to day use. I want to be able to ...
2
votes
1answer
86 views

Does Firefox automatic update in Linux abuse root privileges?

I have Xubuntu 16.04 and I was using Firefox as a regular user. I update Firefox with Synaptic each time. But with the release of Firefox 57, my old Firefox was automatically updated to this new ...
1
vote
1answer
62 views

Launching zypper command with root privilege

I want to initiate zypper command without the entry of sudo. For example, zypper update I attempt to change the permission bit of the zypper file located at /usr/bin folder. I assume that with allow ...
4
votes
3answers
1k views

Should I always set the root shell to /usr/bin/false?

To prevent abuse of the root account (on my macOS, single user) machine, should I always set the root shell to /usr/bin/false (or /sbin/nologin)? For example should I always: sudo /usr/bin/dscl . -...
1
vote
2answers
1k views

Mounting root partition on embedded file system

Linux embedded file system (Linux v. 2.6.26.5) running on raw NAND flash, it use Full Image's RootFS. U-boot 2009.03 bootloader. I need access shell after the Kernel is fully loaded, so that I can ...
0
votes
1answer
518 views

change user to sudo(root) after login to other server

i have 2 servers(Linux 2.6.32-696.el6.x86_64) suppose fe1 and fe2. i need to run a command (service tomcat start/stop) on fe2 from fe1 but it requires sudo as root. Command that i am using for sudo ...
0
votes
1answer
981 views

Problem resetting root password on an embedded device

Linux embedded file system run entirely on raw NAND flash, use Full Image's RootFS. Linux v. 2.6.26.5, U-boot 2009.03 bootloader. After the Kernel is fully loaded, when I try to submit command, the ...
0
votes
2answers
559 views

Deleted my root account from /etc/passwd file for testing in Centos7.3

I deleted my root account line from the file /etc/passwd and unable to boot into Rescue Mode and Emergency Mode. How can I recover the root user back.
1
vote
3answers
1k views

How to change autologin from root to non-root user?

I have installed Ubuntu server 16.04(Actually it's 3.4.113-sun8i ) with Openbox. and put this command startx inside /etc/rc.local to have graphics after boot. but the problem is that it automatically ...
0
votes
0answers
128 views

Apache2 - link DocumentRoot to subfolder on external drive but alter permissions

I have an exfat formatted usb drive mounted at /media/usb/drive1/ with root user via /etc/fstab. Now I would like to link my apache2 DocumentRoot which is located under /var/www/websites/ to a ...
2
votes
0answers
185 views

Why the “ passwd ” command give the root shell without password?

I have a Fedora server in which every time I execute passwd it automatically logins to root with no password necessary: Also, passwd is unable to change root password. Furthermore, root account is ...
-2
votes
1answer
256 views

Debian 9.2 Expert mode Login problem [closed]

I just install Debian 9.2 (expert mode) and I only allow root login I didn't add new user , so my problem was into getting in the system with root login and password which didn't work ( I'm sure 100% ...
1
vote
1answer
333 views

Linux open() syscall and folder permissions

I have a process P which is spawned by a process owned by root. After P is created setguid() and setuid() are called and it runs as user U. The process P attempts to create a file f on a folder F (in ...
0
votes
1answer
1k views

Target initialization failed. Failed to cache rpm database (1)

I am running an openSUSE leap 42.2 64 bit os on my laptop. I was trying to install some packages including nautilus-dropbox, so I added the packman repo. After zypper update, there were some packages ...
2
votes
0answers
72 views

modprobe in setuid contextmodprobe in setuid context

In CVE-2017-0358, author notes that The issue is that /sbin/modprobe is not designed to run in a setuid context. As the manpage of modprobe explicitly points out The MODPROBE_OPTIONS environment ...
1
vote
0answers
279 views

Accidentally moved root into home directory [closed]

I accidently moved root into my home/user folder without really doing anything...I don't quite know how this has happened!! How on earth can this happen with the permissions on root?? I've now been ...
1
vote
0answers
105 views

Trying to install Funtoo (inside VirtualBox only for now, for testing) with ZFS for boot/root - failed install and booting

Following guide https://www.funtoo.org/ZFS_Install_Guide everything works great, until in section "Create optional Datasets" at "Build directory": zfs create -o mountpoint=/var/tmp/portage -o ...
0
votes
1answer
186 views

I am signed as root but no root home directory exist, that probably prevents me creating a new user

I have a problem. When I enter a Ubuntu machine, I see this messages: Could not chdir to home directory /home/root: No such file or directory /usr/bin/xauth: error in locking authority file /home/...
2
votes
4answers
18k views

Why root Can't open file for writing?

[root@localhost ~]# vim /usr/lib64/sas12/smtpd.conf pwcheck_method: saslauthd mech_list: PLAIN LOGIN log_level:3 :wq An error occurs. "/usr/lib64/sas12/smtpd.conf" E212: Can't open file for ...
1
vote
4answers
3k views

Cannot reset root password via grub

I am using Redhat Linux 5. I forgot the root password i set while installing linux OS. After rebooting right after the installation, entering root password is needed of course. So the following is ...
-1
votes
2answers
60 views

Is this account of root privileges in UNIX correct?

Some university lecture notes claim that In Unix systems, it is written into the operating system that some functionalities can only be accessed by the root user: modifying passwords, accessing to ...
0
votes
1answer
38 views

mounting a data partition

I have installed Debian 9 in a laptop and created a partition for data. the partition is mounted as /dev/sda7 and I can see it in the file directory as /data/ But the owner is root and I cannot save ...
2
votes
1answer
57 views

ID results different depending on who asks

I have userX who has realtime privileges thorugh the realtime group. I wanted to give that user admin privileges so I switched to root ~>su root and ran #>usermod -a -G root userX After a ...
1
vote
2answers
2k views

CUPS asking for root password to resume printer on KDE

How can I configure CUPS not to ask for root password to resume or add a printer? Or add users so they're "administrators"? When using KDE Plasma, it asks for root password: "please enter a username ...
0
votes
1answer
95 views

Prevent deleting files in particular directory

Recently, I deleted some files accidentally. Fortunately, I was able to recover them. That is why I would like to prevent deleting files in a particular directory but still allow to create new files ...
4
votes
1answer
795 views

ArchLinux | Login password does not work after creating new user account

I am trying Arch Linux for learning more stuff faster and not having GUI that bothers me, so that I can focus on learning stuff from Linux itself and the terminal. Since I was working with the default ...
0
votes
1answer
562 views

Installing a .rpm package on a Unix VM - root unable to see the file

I am working on an AngularJS app, and want to get Protractor up and running with it, to use for testing the front end user interaction automatically. The way my development environment is set up, is ...
1
vote
1answer
333 views

How to restrict some commands for admin in Linux(CentOS)

how to restrict some commands for admin in Linux(CentOS) I tried to use visudo in root , and write ABC ALL=ALL,!/bin/rm,!/bin/sudo to restrict the "ABC" user not to remove some important files. ...
1
vote
1answer
3k views

run command on user display as root isn't working as expected

I'm trying to execute a xdotool operation (move mouse) on the user's display from a root shell but I get: # DISPLAY=:0 mousemove_relative 1 1 No protocol specified Error:Can't open display: (null) ...
4
votes
0answers
842 views

Alternative to adding 'user_allow_other' to /etc/fuse.conf for security?

It looks like for mounting my Android phone I need to add user_allow_other to /etc/fuse.conf. I researched what this does: According to the manpage: user_allow_other Allow non-root users to ...
34
votes
13answers
14k views

Can I create a *super* super-user so that I can actually have a user that can deny permission to root?

I was thinking that it might be advantageous to have a user with permissions higher than the root user. You see, I would like to keep all of the activities and almost all existing root user ...
16
votes
4answers
5k views

How to stop a script from running if it's not root (and echo “Not running as root! Exiting…”)

Here's my source: #!/bin/bash echo "Running script to free general cached memory!" echo ""; echo "Script must be run as root!"; echo ""; echo "Clearing swap!"; swapoff -a && swapon -a; echo "...
1
vote
1answer
11k views

size of /root and /home partition [closed]

I'm using linux for the first time. I will not use it as my primary os till i get the hang of it. So i have made my /root: 14GB, swap: 6GB, /home: 9.5 GB. Is my set up enough for experimental usage?
2
votes
1answer
80 views

files created on internal hard drive are always owned by root

When I ssh into my computer, files I create on the main hard drive are owned by me: $ touch test $ ls -l test -rw-r--r-- 1 smithty domain users 0 Aug 16 17:26 test But when I move into a ...
0
votes
2answers
123 views

Is there a reliable way to make several user accounts behave as root, except sudo?

I and a friend are administrating a fair number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the ...
2
votes
2answers
236 views

Are there any gotchas with granting a user root privileges by making them UID=0 GID=0?

I and a friend are administrating a number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the only ...
1
vote
0answers
45 views

Save IP in remote host every time connection is up (as non-root-user)

I have a dynamic local Lan IP at work (temporarily), but in order to connect from home, I ssh to the host A (static IP) and from there to my machine. However, since the IP changes, I would like to ...
5
votes
2answers
5k views

Can you list iptables as a non-root user and why?

Is it at all possible to execute iptables --list …. command without being root? Running it as non-root prints this: $ iptables --list iptables v1.4.21: can't initialize iptables table `filter': ...
4
votes
3answers
1k views

Control-C triggers logout from root in bash

I'm facing a really frustrating problem on this specific server, every time I press ctrl+c, I logout from the root session Running CentOS Linux release 7.3.1611 & Bash (4.2.46-21.el7_3.x86_64) [...
0
votes
1answer
569 views

User and Group permissions for mnt folder and files access in CentOS 7

I had installed CentOS as guest operating system in VirtualBox. Now I have been mostly experienced with Ubuntu and CentOS is though similar has some differences. Now I was trying to mount a windows ...