Questions tagged [root]
The "root" account is the most privileged account on a Unix system.
127
questions
2
votes
2answers
2k views
Cracking root user: Automating logging into root using “su” from nonroot user
I want to write a script that allows me to pass a password to the su command. The reason for this is to automate the process of logging into root from nonroot account. From my basic understanding of ...
8
votes
4answers
2k views
How do I stop the root user from deleting a file?
I'd like to know if I can prevent the root user from deleting a file.
Is it possible?
6
votes
7answers
990 views
File protection in Unix
Is there a way to protect a file in such a way that even root cannot delete it or rewrite it after creating it?
I have a file which is created by root under /var/log/ and I want to restrict all users (...
4
votes
2answers
8k views
MySQL root account without password?
I've just installed MySQL server with no password on root account. I was prompted to enter root password 3 times and I left it blank all three times because I don't want to use password. But now it ...
4
votes
1answer
6k views
How to determine if X server runs with root privileges
This is a one-liner: Is there a way/command to check if the X server is run as root or as user?
This was supposed to be a one-liner but alas... I recently upgraded my Arch Linux box. After the ...
3
votes
1answer
3k views
How to read the /proc/<pid>/fd directory of a process, which has a linux capability?
As a non-root user I am running a process. The process binary has been given a cap_sys_resource capability. Even though the process is owned by the same user, that user cannot read its /proc//fd ...
3
votes
1answer
3k views
SELinux and chroot system call
TL; DR: This is a question about the final step, in a portable, developer-oriented rooting process, that works across all Android machines. It is not based on any exploit - it is something that we are ...
3
votes
1answer
89 views
Creating users own “root” [closed]
So my goal on this is to give each user their own "root" by basically making a loop drive with a copy of core files. I know there is stuff like jail shell, and all that fun stuff that makes it a bit ...
3
votes
1answer
2k views
sudo command executes without prompting for password
For some reason, I suddenly do not need to enter the password when issuing sudo some_cmd.
Entered command just runs without ever prompting password, even if I am not logged in as user root. Commands ...
2
votes
1answer
2k views
How to suid iwconfig on Debian wheezy?
I have a script running under my own user account that takes care of all sorts of wireless interfaces. It (more or less) intelligently switches wireless LAN off and on and so forth. However, it does ...
2
votes
1answer
3k views
How can I execute notify-send from root? [duplicate]
I'm working on a bash script which requires root privileges, but which I'd like to give the ability to notify a non-root user of certain alerts via notify-send in GNOME (or any other desktop shell ...
2
votes
2answers
404 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 ...
2
votes
1answer
10k views
How to expand /boot partition on Ubuntu 15.10?
Recently I made a fresh install of Ubuntu 15.10 on my laptop after erasing everything. I have got notification from update manager to update my system. But I am getting the below error which says the ...
2
votes
2answers
1k views
Gaining root privileges in SCO
I am learning Linux for work, so am still a bit rusty on the edges.
I need to change the folder permission of the directory /opt, and I know in Linux, you do the following:
chmod 775 /opt
I get a ...
2
votes
1answer
1k views
Why is “nobody” called the “most privileged user after root”? [duplicate]
When I was first learning Linux I recall reading that because it is so widely used, "nobody" is (jokingly?) known as the "second most privileged user, after root" on Unix machines.
A quick google ...
1
vote
3answers
2k 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 ...
1
vote
4answers
8k views
Root password keep changing
This is frustrating. I am often able to login with a root password. Then I cannot login again. However, I am still logged in. Hence my password must be correct.
I changed the root password with ...
1
vote
1answer
126 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 ...
1
vote
2answers
3k views
Why can I open the Root Terminal only once? [Debian 9]
I freshly installed Debian 9.0 with Cinnamon and for some reason I can only open the root terminal once (after I start up the PC).
When I try to open it up a second time it doesn't show: when I press ...
1
vote
1answer
874 views
Edited sudoers, but `sudo ls` fails
A user has been added with root access in the /etc/sudoers but, it seems that it can not run sudo commands.
[root@compute-0-0 ~]# cat /etc/sudoers
root ALL=(ALL) ALL
hduser ALL=(ALL) ...
1
vote
1answer
457 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.
...
0
votes
1answer
4k views
Why do I get Fsync failed error?
I'm trying to follow MongoDB documentation instructions to configure LTH properly for a machine running MongoDB.
One of the instructions consists of creating a script which runs at boot. ...
0
votes
1answer
171 views
Apper errors and looking strange when opening it via sudo
So I locked my root account for security purposes.
It seems that for some reason when apper asks for the root password when installing, deinstalling or updating packages it doesn't make use of the ...
0
votes
1answer
12k views
How to open Leafpad as root in gnome-terminal in kali linux? [duplicate]
I am following this in which there is some commands:
deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free
deb [arch=i386,amd64,armel,armhf] http://http.kali.org/...
0
votes
1answer
348 views
Ubuntu - Root user cannot see $JAVA_HOME variable expanded to $PATH [duplicate]
I have created a variable $JAVA_HOME in `/etc/environment'
JAVA_HOME="/usr/lib/jvm/jdk"
PATH="...bla bla bla:$JAVA_HOME/bin"
I also edited /etc/profile to have source /etc/environment so that all ...
0
votes
2answers
5k views
How to edit sources.list as root under Debian 9?
So I just installed Debian 9.0.0 on my PC and now I can't download packages with the Synaptic packet manager as the sources.list file under /etc/apt/ has only the DVD set.
All other lines are ...
-1
votes
1answer
11k views
pulseaudio run as root [duplicate]
I have Ubuntu 12.04 installed on my PC, recently I have edited /etc/passwd and changed
user1:x:00:00:user1,,,:/home/user1:/bin/bash
to give root permission to user1 and the system always need to ...