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

4
votes
3answers
600 views

Why is my $PATH variable for root different when I use su root

When I was trying to run chkconfig as an ordinary user (on CentOS 5) I realized that I could not access it because the directory, sbin, is not in my $PATH. When I su to root it still doesn't work. I ...
3
votes
1answer
1k views

Changing non-root user passwords from root (if you don't know the old password?)

Hey, so I created a user, and he has been sshing in and doing a lot of stuff, but he forgot his password - is there any way for me to change his password without knowing it?
2
votes
3answers
426 views

Recovering From userdel root

A student at my school, whilst logged in as root, committed userdel -r root We quickly came to the consensus that he needed to reinstall (not too big a burden in this environment). But is this ...
0
votes
2answers
103 views

Make nginx be able to access all web files when not running as root

I currently have my server setup as follows A new linux user is created for every website The websites root folder will be owned by this user and has 700 or 500 nginx runs as root:root so it can ...
1
vote
2answers
543 views

Ping size limit - FreeBSD

In the man page for FreeBSD ping: -s packetsize Specify the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 ...
11
votes
5answers
15k views

what permission to write PID file in /var/run

Ubuntu touch: cannot touch `/var/run/test.pid': Permission denied I am starting start-stop-daemon and like to write the PID file in /var/run start-stop-daemon is run as my-program-user /var/run ...
2
votes
1answer
987 views

How to use rsnapshot without remote root?

I've configured an in-house server to use rsnapshot to backup our hosted RHEL servers but in order to do so, I'm using the root account on those servers so I have access to everything including ...
6
votes
7answers
502 views

Server was hacked. Now login wont accept 'root' as username comes up invalid

On Fedora, root is coming up invalid. WHat is solution?
0
votes
4answers
295 views

Obtaining root access to linux machines [duplicate]

Possible Duplicate: Lost Root and other user passwords I have a number of linux machines (debian and ubuntu) left from a former system administrator. There's no way to find out root ...
8
votes
6answers
448 views

Why shouldn't root be allowed to login via ssh?

why should root access be disabled for ssh? I always hear that's for security reasons. But I don't get it. What's different to login as non-root and then sudo su -? What's the preferred way to handle ...
0
votes
1answer
319 views

Grant root access without having grant access with mysql

In attempts to learn more about apache and mysql, I've been fiddling with my local environment. Fun times. Of course, this leads to my screwing things up. So, thanks for being there. Recently, I ...
4
votes
3answers
7k views

How can I run supervisord without using root?

I seem to be having trouble figuring out why supervisord won't run as a non-root user. If I start it with the user set to jason (pid 1000), I get the following in the log file: 2010-05-24 ...
0
votes
3answers
206 views

All password with '$' inside (phpmyadmin) won't work [UTF-8 problem]

i set up a dedicaced server with a tutorial. I set in PHP : mbstring.language=UTF-8 mbstring.internal_encoding=UTF-8 mbstring.http_input=UTF-8 mbstring.http_output=UTF-8 ...
1
vote
3answers
55 views

Swapping root directory of a web server

One of the clients that I maintain requests a website redesign, we do all the work in a subfolder /newsite/ and they intend to make it live this instant. The /newsite/ is made in wordpress and from my ...
1
vote
3answers
852 views

Deny Home-Directory-Access for root

Hy, a friend and me want to share a Linux-Machine. We both need to get root-rights via sudo for administering that machine. Is it somehow possible to deny the access to the home-folder for the other ...
3
votes
3answers
26k views

chmod -R 777 / on ubuntu - numerous problems

A client has accidentally given the entire filesystem full permissions on their ubuntu 10.04 box. chmod -R 777 httpdocs/cd / As you can see they attempted to cd to the root, and instead gave chmod ...
6
votes
2answers
20k views

Debian: how to create a user with root privileges (sudo)

How do I create a user with root privileges in Debian? Maybe it sounds a bit silly, but I don't think I need user directories, only some rights to run services (mainly web server, mysql, etc.). I just ...
0
votes
2answers
1k views

tomcat6 on ubuntu fails when user set to root

I'm well aware that running tomcat6 is really bad from a security point of view - and opens the box it is running on to all kinds of security risks and attack vectors. That said: When I change the ...
5
votes
3answers
3k views

Rsync over ssh with root access on both sides

I have one older ubuntu server, and one newer debian server and I am migrating data from the old one to the new one. I want to use rsync to transfer data across to make final migration easier and ...
0
votes
2answers
201 views

On Ubuntu, how to design a monitor to run a process when a file is written to a directory?

I want to run a process when a file is written to a directory on Ubuntu. I understand I can write a monitor to do this. (ie not an event based trigger but a 'monitor'). To implement this - other ...
2
votes
2answers
11k views

How to run tomcat6 on ubuntu as root?

I've got an existing software package that runs on Ubuntu that uses a chroot jail and so needs to be run as root. I want to exec this from a java web application running within Tomcat6 on Ubuntu, so ...
6
votes
5answers
5k views

Ubuntu - can non-root user run process in chroot jail?

Is it possible for a non-root user to run a chroot process on Ubuntu?
1
vote
3answers
2k views

How to run a script in Ubuntu via SSH as superuser?

So I have a script that needs to be executed remotely as root. This isn't a problem with most Linux distros since they have a root account. But since Ubuntu does not, executing anything as root ...
0
votes
3answers
846 views

Is it dangerous to allow every user to run nmap as root?

At our university we have some computers in the "networking lab", that are configured to allow everybody to run nmap as root via /etc/sudoers. Could this be a security vulnerability?
1
vote
1answer
328 views

Our Server Rooted but exploit doesnt work?

My friend's hosting server got rooted and we have traced some of attacker's commands.. We've found some exploits under /tmp/.idc directory.. We've disconnected the server and are now testing some ...
0
votes
3answers
1k views

Super user in LDAP?

I am running 10 Linux machines that is doing different types of work. The machines are configured to use LDAP authentication so when one user is configured in slapd he can login on all the machines. ...
7
votes
5answers
846 views

Why would sshd allow root logins by default?

I'm currently working on hardening my servers against hacking- amongst other things, i'm getting a load of attempts to log on as root over ssh. While i've implemented fail2ban, i'm wondering, why root ...
1
vote
3answers
265 views

UNIX User Account to Restricted SysAdmin (User/Printer Admin only)

I'd like to know if there is a way for a user account to be enabled or elevated to carry out system admin tasks WITHOUT having to use the root account or sudo. Goal here is to allow a user account to ...
3
votes
2answers
732 views

www-data ownership makes the WordPress installation consume more memory

I have a WordPress installation. When the ownership of the folder is root, the memory consumed is okay. However, when I change the ownership to the www-data user, it starts consuming a lot of memory ...
0
votes
3answers
4k 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
89 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
669 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 ...
1
vote
4answers
621 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
794 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
815 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
8k 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 ...
6
votes
2answers
3k views

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

I tried to switch to root in CentOS by running su, but 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 path ...
1
vote
1answer
267 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 ...
22
votes
8answers
4k 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 ...
2
votes
2answers
2k views

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

<?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 ...
29
votes
4answers
68k 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 ...
-1
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 ...
4
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 ...
1
vote
2answers
506 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
925 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". ...