root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

learn more… | top users | synonyms

2
votes
2answers
2k views

CPanel - How to stop Apache from running as root user? [closed]

<?php echo `whoami`; ?> So this is returning 'root' and I don't know how to prevent it. I'm using WebHost Manager / CPanel which is supposed to create multiple users/vhosts and have Apache ...
3
votes
4answers
2k views

Configure sudo to ask for root password

Is it possibile to configure sudo to ask for root password instead of user password? The server is configured with a root user and a simple user (let's call him simple) with limited privileges, used ...
3
votes
5answers
2k views

apache-user & root access

I want to develop few scripts in php that will invoke following commands; using exec() function service network restart crontab -u root /xyz/abc/fjs/crontab etc. The issue is that Apache executes ...
45
votes
4answers
108k views

Adding a directory to $PATH in CentOS?

We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at ...
0
votes
4answers
1k views

Ubuntu keep admin rights; skip entering password and sudo

I was wondering if there is a way to enter in my admin password someplace just once and keep it for my entire time logged in. I hate having to type sudo command-name* every five seconds, or typing in ...
5
votes
4answers
3k views

ubuntu - how can I avoid typing a password on every admin action?

I just set-up ubuntu 9.10 on my computer, and I'm trying to figure out how to avoid typing a password on every action that requires sudo privileges. I just want to type a password once on login and ...
2
votes
2answers
612 views

Problem after system update. Root permission denied, user lib permission denied

As I updated opensuse 11.1 with update packages from october and november 2009, I couldnt use the command ping. For root it gives Permission denied and for a regular user I get libresolv.so.2: ...
7
votes
2answers
3k views

should use sudo or just su root in server management?

Which approach is better? For desktop usage, it seems that sudo is better since: I can have a more consistent history as a normal user Don't need to remember two passwords, which is especially ...
1
vote
1answer
1k views

sudo: uid 1000 does not exist in the passwd file!

How can i restore my /etc/passwd file? I have access to it, but it's currently empty and I added this to the file, but I can't even SSH to the machine, I'm getting a "connection refused". ...
0
votes
2answers
479 views

Cron and interactive application

I want to schedule a gui application in cron, but there is a problem. When cron tries to run the scheduled task (amarok in my case) it throws cannot connect to X server error. I assume it is because ...
2
votes
5answers
1k views

What is my MySQL root password?

Where or how do I check MySQL root password? I don't have a .my.cnf file, I can't login to SQL console (it requires a password), I can't do anything.
1
vote
1answer
2k views

MySQL - allow connection from remote machine as root user

When I installed MySQL server in Windows, there was an option "Allow root connection from remote machine". I checked that option and I had no probs when using it. I installed MySQL server in Ubuntu ...
4
votes
6answers
10k views

Regular user using ports below 1024 [duplicate]

Is there a way on Linux (CentOS if that matters) to enable regular users to use ports below 1024? (open listening TCP socket on that port) Currently I understand that only root has privileges to use ...
0
votes
2answers
96 views

Locking netfilter in linux

A few years ago when I was reading something about linux server security (maybe it was a book) I encountered a command or an application that prevented the netfilter (iptables) rules from being ...
1
vote
2answers
1k views

send email as root in Debian

[solved] I have a problem while sending email as root from Debian machine. In exim panic log appears message: 2009-10-23 10:56:24 1N1Fwd-0001v5-Kh User 0 set for my_local_delivery_transport ...
6
votes
5answers
17k views

ubuntu: let a user run a script with root permissions

I have ubuntu 8.04 and I want to write a bash script that runs as root which every user can run. I myself can do sudo. How do I do that? CLARIFICATION: I don't want to do it with sudo, because then ...
0
votes
3answers
368 views

root email address

Is there a way to change outbound email id for root, i.e instead of root@localhost.localdomain to root@apps.mydomain.com?
4
votes
8answers
2k views

protecting my files from root

In a remote box, my files are 700-chmoded, but I'm worried that root may be reading them. Is there a way to add another layer of protection to avoid that, perhaps by encrypting them, but allowing ...
1
vote
2answers
6k views

Reset MySQL 5 root password on Mac OS X

I just installed MySQL 5 on Mac OS X Snow Leopard (10.6.1), set a password and forgot it. I tried to follow this tutorial: ...
0
votes
2answers
155 views

Apache2's root dir problem

I have apache2 setup on my local machine with virtualhosts. In my hosts file, i have this: 127.0.1.1 mysite 'mysite' is a site, in which i have php scripts that use include('/path/to/whatever'); ...
4
votes
8answers
14k views

How to specify root's environment variable?

I do rails development. In this app, I need to specify the environment variable LD_LIBRARY_PATH = /usr/local/oracle/lib, but when I run the app with sudo script/server, it doesn't run because that ...
12
votes
7answers
33k views

Chown operation not permitted for root

I try to chown the owner of a file to root, but I can't. I'm doing this as root. I get the following message: chown: changing ownership of `ps': Operation not permitted
2
votes
10answers
20k views

Cannot Login as root

At my work we ship our product on pre-installed servers as a software/hardware package. We are using open SUSE 10.3 for the OS and we setup and we always log in with the root user to do maintenance ...
8
votes
5answers
4k views

SSH - How to include “-t command” in the ~/.ssh/config file

I use ~/.ssh/config file so that I can easily enter ssh myserver and it'll provide the correct username, port, hostname, identity file, etc. However for many servers, the first thing I do is enter su ...
0
votes
3answers
9k views

phpMyAdmin - can’t connect - invalid setings - ever since I added a root password - locked out

I run XAMPP, a few days back i had set up a password for the root password through phpmyadmin I am not able to access phpMyAdmin ever since that moment I followed help on this link but everything ...
-1
votes
5answers
2k views

ubuntu: runing .sh files as root

How do I run a .sh script with root privileges from Ubuntu's cmd? Some scripts require to enter the password. I watn to avoid this.
3
votes
3answers
205 views

How is your “maintenance account” configured?

I know I'm not supposed to log in as root directly to configure things on my server. So, I always make a new account and add it to /etc/sudoers. I'd like to get some tips on configuring this ...
0
votes
1answer
3k views

How to enable ssh on SunOs 5.10?

I need to launch ssh daemon on a SunOs 5.10 anyone knows how to help (command, etc)?
4
votes
2answers
5k views

Is it possible to run an OS X GUI app as root?

Is it possible to run a Mac OS X GUI app as root when you are logged in as a different user? [Yes, I recognize that this is usually a bad idea.] When I try sudo open /Path/To/My.app it runs as ...
2
votes
2answers
1k views

Running a program with root privilages in Ubuntu [closed]

How do I run a GUI program with root privileges from Ubuntu's Alt+F2 Run dialog?
2
votes
6answers
1k views

How can an attacker gain root next time a compromised account does?

I was reading Ubuntu's documentation about root/sudo when I came across the following: Isn't sudo less secure than su? The basic security model is the same, and therefore these two systems share ...
31
votes
10answers
9k views

Why su to root instead of logging in as root?

I've heard often that it is better to su to root rather than log in directly as the root user (and of course people also say that it's even better to use sudo). I've never really understood why one ...
16
votes
5answers
13k views

Bash Scripting: Require script to be run as root (or with sudo)

I'm trying to write a bash script (in Ubuntu) that will backup a directory using tar. How can I do a check in the script so that it can only be run as root (or with sudo)? For instance, if a user ...
1
vote
2answers
1k views

Ubuntu bash scripting with root commands

I am trying to write a bash startup script in Ubuntu 9.04 that will remove the annoying system beep from my computer: #/bin/bash rmmod pcspkr #remove system beep; also doesnt work without root ...
9
votes
4answers
51k views

How to configure vsftpd to allow root logins?

I'm on SLES 10.1, and trying to configure vsftpd to allow root logins. Does anyone know how to do this? So far, I have this: local_enable=YES chroot_local_user=NO userlist_enable=YES ...
4
votes
6answers
4k views

If I change the root password on a linux server, can someone still access root if they created an SSH authorized_key for root user?

I'm not even sure if I asked that right. Anytime someone mentions changing the root password, they mention changing /etc/passwd, or just using the passwd command, but I've never heard of having to ...
22
votes
4answers
5k views

vim re-edit as root

I often open a file in vim, make some changes and when it's time to save the file is read-only.. (owned by another user). I'm looking for tips on how I could re-open the file as root and keep my ...
2
votes
5answers
2k views

what is a root server hosting?

While searching online for dedicated hosting servers i stumble on some websites offering root servers for great prices compared to other dedi servers while features were also great. Does anyone know ...
0
votes
2answers
386 views

temp folder in Macos under root?

I'm eriting a MacOS script that need to run under admin rights (under 'sudo'). Script needs a temp folder in order to keep some temp files. Unfortunately, there is no 'TMPDIR' under root! If i run ...
1
vote
5answers
281 views

Superuser access in shell

How do I get root access from shell? When I'm trying to use su I get: default@default-laptop:~/home/default$ su Password: su: Authentication error ...
3
votes
4answers
8k views

How to override a PATH environment variable in sudo?

I set PATH in /etc/profile. I do not have any problems in the case of the general user, but PATH does not go when I become the root authority in sudo. What would you do to override the PATH which is ...
4
votes
1answer
298 views

What are the pros and cons of enabling the root account on OS X?

Mac OS X machines have the root user disabled by default. Is this the right setting for a web environment? Specifically, the computer would be running Apache 2, MySQL 5, PHP 5, and other useful web ...
18
votes
8answers
7k views

Should we disable the root user?

Should we remove the root password, disable remote login and basically require adminstrators to use sudo to perform administrative actions?