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

0
votes
3answers
5k views

need to create space on CentOS - dev/md1 94% full

I have a CentOS Linux dedicated server that is sending me warning messages everyday that it is short on space. The Servers is CentOS Release 5.4 final running cPanel/WHM with fantastico and RVSkins ...
1
vote
1answer
100 views

Help Needed: I removed mysql db access permissions for root user. How can I gain access again?

I accidentally removed access permissions of database mysql to the root user. I'm now not able to create new databases, set permissions, etc. What can I do to gain access again?
8
votes
4answers
738 views

Remote Root Login

I know one of the first things you do to secure a server is disallowing remote root login. Passwords are pretty weak; what do people think of only allowing root login via ssh keys or other password-...
2
votes
3answers
809 views

Chown root mistake

I accidentally executed the chown userx:userx / command. Is there a way to fix this in a gentle way? I know the mysql folder has to be owned by mysql:mysql. But what about the other folders? Are ...
0
votes
2answers
1k views

root ssh access - what does this mean

I am wondering when hosts say they give you root access over ssh what does this mean? Does it mean that you can log in using only command line? Or can you use the gnome desktop (or whichever your ...
3
votes
7answers
3k views

How do I securely execute commands as root via a web control panel?

I would like to build a very simple PHP based web based control panel to add and remove users to/from and add and remove sections to/from nginx config files on my linode vps (Ubuntu 8.04 LTS). What ...
3
votes
1answer
840 views

Safe rsync with no passwords between two systems

We are trying to implement a safe rsync for backups between 2 servers. We are trying by all means to avoid having root access with no passwords between the 2 systems and if any just do that for an ...
3
votes
2answers
10k views

Disable local root login, permit root login over ssh

I want to prevent the root user from logging in directly from local console on a RHEL box, but allow login from ssh. Can this be done? Thanks...
3
votes
1answer
1k views

Why are cron jobs appearing in logcheck reports?

I've just installed logcheck and configured it to send mail to me whenever it finds problems. It runs every hour by default at HH:02 and is mailing me stuff like this: Jan 31 20:05:01 Linux CRON[...
6
votes
2answers
5k views

What is the difference between `su` and `su -` in CentOS?

I tried to switch to 'root' in CentOS by running su. It does change to 'root', but it doesn't seem to be a real 'root' user. For example, by default, ifconfig command in /sbin is not found in the ...
1
vote
1answer
301 views

3 Root accounts in MySQl database

I have managed to get mySQL running under Ubuntu 8.10, I am now diligently trying to secure the database and am adding passwords for the root users. My question: I have a root user under the host "...
23
votes
8answers
5k views

accidently ran “chown www-data:www-data / -R” as root

i just ran this a few seconds ago, i managed to do ctrl-c as soon as i realized what i started doing. so far in the only dir its started going through is /bin im afraid to do anything else, so far ...
3
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 ...
52
votes
4answers
120k 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 /usr/lib/ruby-enterprise/...
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
637 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". root:x:0:0:...
0
votes
2answers
482 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
2k 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 9....
4
votes
6answers
11k 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
98 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
18k 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
375 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: http://blog.innovativethought.net/2007/05/17/resetting-your-forgotten-mysql-...
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
15k 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 ...
13
votes
7answers
36k 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
23k 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
5k 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
10k 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
206 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
2k 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
14k 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 ...
11
votes
5answers
60k 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 userlist_deny=...
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
6k 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 ...
0
votes
6answers
2k views

what is a root server hosting? [closed]

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 ...