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.

45
votes
2answers
65k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
27
votes
2answers
59k views

Can I make a script always execute as root?

How to make a script execute as root, no matter who executes it? I read about setuid but I'm not sure how to do this. I'm using Linux, Ubuntu 12.04 LTS.
6
votes
2answers
3k views

How can I pass Root Password to a script

I have the root password in one of my scripts and I want to launch another script which requires root permission from this script. How can I use the root password which I have so that I do not have to ...
30
votes
5answers
46k views

How do I run a launchd command as root

I have the following launchctl command as a .plist file. It's loaded and set to run once a day but, it needs to run as root and I'm not sure how to verify this. Also, this cron job basically CDs ...
9
votes
7answers
2k views

Why is it bad to run as root?

I've often come across posts on forums or other websites where you see people joking in such a manner about running/logging in as root as if it's something awful and everyone ought to know about it. ...
385
votes
7answers
468k 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 ...
43
votes
5answers
28k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
33
votes
5answers
89k views

How to check root partition with fsck?

I installed Linux Mint 12 KDE, and I would like to check the root partition for any errors. How do I check the root partition with fsck at boot time?
5
votes
5answers
26k views

How do I enable the root account in Mac OS X?

I know how to enable root account on Mac OS X Leopard, but not Snow Leopard or newer OS X versions. How can I do it?
3
votes
3answers
7k views

chown -R root.root /

So I was working and there was a directory that I was periodically changing to my user in a root terminal so that I could open the files in text editors, but I accidentally pressed / instead of . and ...
2
votes
1answer
9k views

How to perform root level commands on Linux (Fedora) Live Media

I need to use Live Media to make changes to a hard disk drive. I tried to sudo to no effect. Seems like it would be troublesome to authorize root access on Live Media or have sudo allow commands ...
0
votes
3answers
368 views

Linux - Protection from ourselves (Root)

I love Linux and everything she stands for; however, unfortunately I grew up with Windows. Thusly so I have learned very bad practices (such as NT Authority will protect me). I have several Linux VPS'...
55
votes
2answers
6k views

Where did the term “superuser” originate?

Where did the term "superuser" originate? Is it a shortening of "supervisory user", or is it just an indicator of the level of power one such user holds in a system?
15
votes
5answers
56k views

Synology DSM - Can't log as root (but works with admin)

After some automatic updates (or being hacked ?) I have many things broken and a huge problem to resolve them since I can't login as root anymore. ssh admin : login success su root : permission ...
5
votes
1answer
88k views

How can I become root in Yosemite? [duplicate]

I have a late 2013 Mac Pro running Yosemite. How can I become root in Yosemite? There is no root user listed in Users & Groups under System Preferences... I need help to be able to be root so I ...
40
votes
3answers
80k views

Does the root account always have UID/GID 0?

On all the Linux systems I've managed, the root account has a GID and UID of 0. Is this guaranteed, or is it possible that the system will give root a different ID?
14
votes
6answers
29k views

What is different between root and sudo?

A root user can have all the privileges. But a normal user can gain access like a root with su or sudo command and their own password. So what's the difference?
10
votes
3answers
15k views

apt-get update not working: Signing/ Verification errors

When I run apt-get update I get Ign:1 http://dl.google.com/linux/musicmanager/deb stable InRelease Ign:2 http://archive-4.kali.org/kali kali-rolling InRelease Hit:3 http://archive-4....
5
votes
2answers
19k views

chown: changing ownership not permitted, even though running as root

I managed to configure my Raspberry Pi as an FTP server with ProFTPD. The only problem is, I can´t upload and rename files and Windows Explorer says: 350 File or directory exists,ready for ...
6
votes
2answers
1k views

Potential issues with adding /usr/local/[s]bin to root's path?

I've noticed that the root account $PATH does not include /usr/local/bin or /usr/local/sbin by default. Are there any potential issues that could arise from adding those directories to the path? If so,...
8
votes
4answers
4k views

Concern over running WireShark as root

I started WireShark on my Ubuntu machine and discovered that there were no interfaces I could listen to. So I launched it as root. This gave me access to all the interfaces, but gave me a warning: ...
7
votes
2answers
17k views

Are root password changes logged?

Long story short, after a recent company "reorg" the root password on all of our servers was mysteriously changed. I need to figure out first how to regain root access, but second how to figure out ...
3
votes
2answers
718 views

What is the equivalent of root in Windows 8.1, and how can I open a shell in that context? [duplicate]

I've heard the equivalent of root is the "SYSTEM" account. But I used a tool called "RunAsSystem" to open a shell as SYSTEM, and I'm still getting "access denied" errors even though I know the files ...
2
votes
4answers
19k views

Enable root user in Gnome for Fedora 14?

I recently upgraded Fedora 12 to 14 and I can no longer login as root from the GUI login screen. I choose Other, but no dice. I know that it is bad practice to do this normally and that is probably ...
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 ...
9
votes
7answers
26k views

How to run a program as root without “sudo”?

I have a certain binary program on OS X that can only be run as root. I'm tired of prepending sudo each time I invoke it and typing the password, and would like it to automatically run as root when I ...
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: ...
2
votes
3answers
1k views

resetting the root password in linux

How do I reset the root password in fedora ? Is there any way out ? I have googled a lot but couldn't find any useful result.
0
votes
1answer
16k views

Volume Shadow Copy Service warning: VSS was denied access to the root of volume (Win 7 Home Premium)

I am mystified by the following warning in the Event Viewer. It is very frequent and always the same. Can anyone explain this to me? Is it a cause for concern? Might it have anything to do with my ...
7
votes
1answer
4k views

I believe I've deleted MySQL root user, how do I recreate it?

I'm running ISPConfig on CentOS and I don't know how, but I don't seem to have a root mysql user. I can stop mysqld with /etc/init.d/mysqld stop Start it again and skip grant tables mysqld_safe --...
4
votes
5answers
1k views

How to hide a code from myself until a specified time?

Essentially, what I need is some way to generate and store a random string (20 characters long, say) for some period of time, such that there is no way for me to recover the string until the end of ...
3
votes
1answer
246 views

Not able to write to directory despite correct permission and group

Have been strugling with a wordpress-virus attacking and Writing files in one of my sites. One strange thing i noticed is that even with the root user i am not able to write to the directory. The ...
2
votes
2answers
2k views

Install postgres without apt-get

I have access to a machine on a scientific hpc, and I'm setting up an environemnt to create a web application, made up basically of TOMCAT and postgresql. I cannot use another web server. The OS is ...
1
vote
2answers
471 views

Cannot login as super user anymore

I have an issue with login as root with in ubuntu. I've mistakely assigning my user to a group as primary group and it is not anymore in sudoers. Consequently I cannot use "sudo" anymore. I tried to ...
1
vote
1answer
4k views

How to run 'ifconfig wlan0 down/up' with a comm user?

I need to run ifconfig wlan0 down and ifconfig wlan0 up with my common user. How can I perform this?
0
votes
1answer
222 views

Timeout access with Shell

Hi I have a Debian 6 Webserver to which I can connect with Putty. But if I leave Putty open then even after 2 days I am still logged in. I have got 2 questions: How can I make sure that I will be ...
0
votes
1answer
315 views

Fail to redirect log to /var/log/syslog

I have an upstart script that does the following start on runlevel [2345] stop on runlevel [06] respawn pre-start script exec >/dev/kmsg 2>&1 REPO=git@github.com:blabla/bli ...
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 ...
0
votes
2answers
5k views

linux root unable to create directory

server = Ubuntu 11.04 login as a root, able to create directory, copy file previously few weeks ago, but now try to create directory but failed mkdir abc mkdir: cannot create directory `abc': ...
0
votes
2answers
4k views

How to have MySQL entitle the machine's root user?

I'm trying to run mysqlcheck. Its failing with: $ sudo su - # mysqlcheck --auto-repair --all-databases mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when ...
0
votes
0answers
36 views

Cannot login to server after file permissions change [duplicate]

I am using Ubuntu server. I ran: chmod -R 700 / when I was logged in as root. Now when I try to login as my normal user I immediately get kicked out. Is there anyway to log back in to the server ...