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
2answers
175 views

Logout root after tmux detach

I'm running tmux on my servers and when configuring things I like to just su into root and take care of things. Is there a possibilty to log out root automatically after I detach the tmux session?
0
votes
3answers
348 views

restrict root access for certain files or filesystems

I want to store files for my users on encrypted filesystems. Every user would have his own filesystem with his own key. The user is able to log in to the system and mount his filesystem. When they are ...
0
votes
1answer
403 views

Prevent setuid from dropping setcap user privileges (VirtualBox)

I'm trying to run a web server from a headless, NAT'd VirtualBox guest. VirtualBox needs to bind to port 80, but the only way to do so is by running VirtualBox as root. To get around this, I tried ...
1
vote
1answer
890 views

Root password change using usermod

I'm trying to implement an automated root password change for our Linux boxes. I'm generating a hash in the script since users will be able to see the contents of the script. I found that you can ...
2
votes
2answers
434 views

How to execute (some) CGI commands as root

I want to put a simple CGI script in my APACHE server. I'd like to write it possibly in C (but also in PERL, if I want). The problem is that it must contain some lines that can be executed only by ...
1
vote
1answer
914 views

Root SSH login works, but su/sudo to root does not work

Im recently working on a clients box, and SSH into the box with root credentials work but when i try to su or sudo to root user it states incorrect password. I tried changed the root password and know ...
1
vote
2answers
2k views

CentoOS SSH Access

I'm executed this commands with root user i'm on a CentOS 6.3 server: #useradd newuser #passwd newuser #visudo then I added this line at end of file: AllowUsers newuser #service sshd restart ...
-1
votes
1answer
275 views

Is running Supervisor as root a bad idea for security reasons? [closed]

I want to have a flexible setup (will need to run Redis, Celery, and uWSGI), but I'm wondering whether or not it's a bad idea to run Supervisor as root (the default), and if so, why it is bad.
1
vote
1answer
55 views

Root being controlled by ARD

I run an educational lab of 20 iMacs, all running Mac OS 10.7.5(11G63) with ARD version 3.6.2. My server and all of the iMacs run Lion. I seem to have crossed something and now my root user is being ...
0
votes
1answer
140 views

Getting permission denied error

On my Media Temple DV 4.0 server I am getting permission denied errors: -bash: cd: httpdocs: Permission denied If I switch from my login user to sudo (sudo su) or switch to root using su-, I can ...
0
votes
1answer
286 views

Recommended way to start supervisord from non-root bash script?

I have set up supervisor to monitor some processes. Because I deploy via remote script, I need a way to send supervisor start/stop commands without sudo. I'm not sure how to do this though. Is there ...
3
votes
2answers
4k views

Lost Linux root password - Recovery mode and init=/bin/bash fail

I lost/forgot the root password to a server sitting beside me and am trying to reset it. I would rather not have to wipe and re-install or use a Live CD (server is running Ubuntu Server 12.04). What ...
0
votes
3answers
74 views

“root@host.domain.com” e-mails [closed]

I constantly receive e-mails from my "root@host.domain.com" and it is flooding my gmail inbox with 8-10 e-mails a day. Could I know what is the convention or common practice that most people use to ...
1
vote
2answers
1k views

SUDO YUM not found

I am running a Amazon ec2 instance on amazon's linux. Whenever I run anything sudo yum it give me this: sudo: yum: command not found ec2-user$ rpm -qf /usr/bin/yum yum-3.2.29-30.24.amzn1.noarch ...
-3
votes
4answers
387 views

ps -u root shows that httpd is running as root - is this safe?

In the command line if I do this: ps -u root | less one of the lines is this 19974 ? 00:00:01 httpd is this safe, to have the main httpd process as running as root? if i do this : 'ps ...
5
votes
5answers
1k views

Linux - How to manage the password of root?

We have just deployed a couple of Linux server. Each sysadmin will have his own account on the server (i.e.: jsmith), and will connect using SSH with a certificate which will be put into the ...
2
votes
3answers
645 views

What's the safest way to kick off a root-level process via cgi on an Apache server?

The problem: I have a script that runs periodically via a cron job as root, but I want to give people a way to kick it off asynchronously too, via a webpage. (The script will be written to ensure it ...
0
votes
1answer
82 views

restore root account on ubuntu running in EC2 [duplicate]

Possible Duplicate: root locked out of EC2 How can I restore root account that is running on EC2 Ubuntu platform? In the /etc/passwd the root username got replaced with something like ...
-1
votes
2answers
225 views

Root SSH/SFTP Always 777

I have an Ubuntu serve that I'm connecting to via SFTP (and also an SSHFS mount locally). When I move a file to the server via the mount I need it to have permissions set to 777. I've added umask 000 ...
-2
votes
1answer
124 views

Mysql on ubuntu root password dissapeared somehow? Password no more required for mysql root? [duplicate]

Possible Duplicate: Mysql loses its root password I am sure i have mysql server installed on localhost with ubuntu with root user and required password. I have continued my daily developing ...
0
votes
1answer
148 views

Change default root user with a new one on Ubuntu Server

I have a VPS, until now I used the default root user for SSH access and everything. For security reasons I'd like to use a different user for root, terminal access and sudo operations. So I created ...
1
vote
1answer
454 views

Cannot login as root to centos server

I used to login as ssh root@servip with a password authentication into my CentOS 6 server. I am not sure if what I have done has caused this, but while trying to get over my problem of accessing ...
1
vote
2answers
307 views

Run binary automatically as root

I have root access. How can I let a general user with little permissions run a binary file as root without a password? I tried giving it root:wheel with chown, but that did not let a general user do ...
0
votes
2answers
293 views

Launching FPM pool as superuser / reflecting root access

I'm building a NAS control application with PHP, that can be only accessed from the local network. I'll start it off with that PHP-FPM does not allow to launch it's pools with user root, and I have ...
-1
votes
2answers
102 views

Only Readable by Root

I'm installing SSL certificate on a VPS server. I need to make it only readable by the root. How can I do this?
3
votes
3answers
789 views

Check if root ca certificate is installed

We are having a custom CA for our local-domains. The Root CA certificate is installed on all the corporate machines by default, but sometimes it happens that we have someone here who doesn't have it ...
1
vote
2answers
1k views

Why can't I change the mode of /proc/sys/kernel/pty/max even when I am root?

Since pty is limited, I want to modify the content of /proc/sys/kernel/pty/max. The original value in max is 4096, and now I want to modify it to 10000. [root@home pty]# pwd /proc/sys/kernel/pty ...
2
votes
2answers
277 views

Resetting root password on Fedora Core 3 - serial cable access only

A little background: We have an old rackmount server running a customised version of Fedora, manufactured by a company called Navaho. The server is a TeamCAT, running some proprietary rubbish called ...
-3
votes
4answers
119 views

Why is it recommended to work in Linux with a non-root user? [duplicate]

Possible Duplicate: What's wrong with always being root? The very first rule I've been taught about Linux is never to use root as your main user and I was wondering why
2
votes
1answer
3k views

Bind 9.7.3 not forwarding to ISP DNS server (only local resolving successful)

I have a bind DNS where I have installed SAMBA and made it a BDC. I plan to promote it to PDC and take out the Win2003 AD server to replace it with Samba. Bind is installed on that same server as ...
0
votes
4answers
178 views

I run as root user in a subdir this command: mv /*

In a subdir (/var/www/html/subdir) by error I run as root: mv /* . It move ALL files under the working directory, commands as ls, mv, cat, not work, inclusive run by ./bin/ls. Keyboard and Mouse was ...
3
votes
3answers
651 views

To root or not to root?

Please see the (somewhat) related topic here. My day-to-day tasks on a linux machine require superuser access since I would be (re)starting services, monitoring the system, (un)installing stuff etc. ...
5
votes
3answers
1k views

Why does 'pkill /?' kill my SSH session?

After running the following commands (bash) as root via SSH: pkill --help pkill -h pkill /? The first two commands didn't provide me any information, that's why ran the third (kinda ...
2
votes
3answers
86 views

Setting the server to look for index.php file by default

I am a web developer and I've requested our Sys-Admin to setup a server for my team that will be used as a development environment. The PHP is running as a CGI. When i try to open http://myaddress/ I ...
0
votes
2answers
275 views

Change user password within user with root account

I'm logged into (ssh) my ubuntu server into a non-root user account. I can not directly ssh into the server as root, because I disabled it. I have the root password. I need to change the user password ...
2
votes
2answers
339 views

Can root become user and access encrypted home?

The home is mounted unencrypted on login. I tried accessing it after doing 'su sampleuser', but it was encrypted, which is the expected behavior I guess. I also tried changing the user's password, ...
6
votes
4answers
14k views

Why (or how) does the number of open file descriptors in use by root exceed ulimit -n?

Our server recently ran out of file descriptors, and in regards to that I have some questions. ulimit -n is supposed to give me the maximum number of open file descriptors. That number is 1024. I ...
1
vote
1answer
648 views

nginx doesn't find the directory but apache does

I use apache as the backend server and nginx on the frontend. Apache listens to port 8080 and nginx to port 80. What I do is have the root point to the public folder foreach virtualhost: ...
0
votes
3answers
6k views

Root only has read permission for /etc/ssh/sshd_config?

I'm trying to edit my /etc/ssh/sshd_config file as per these instructions to properly set up git on my Synology NAS: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (step 6) However, when ...
11
votes
2answers
613 views

What is the difference between “sudo -i” and “sudo bash -l”

There is a recent question regarding multiple sysadmins working as root, and sudo bash -l was referenced. I searched for this on google and SE, but I don't understand the difference between sudo ...
28
votes
9answers
4k views

Multiple Linux sysadmins working as root

In our team we have three seasoned Linux sysadmins having to administer a few dozen Debian servers. Previously we have all worked as root using SSH public key authentication. But we had a discussion ...
4
votes
1answer
284 views

How to shutdown from a script without being root?

I've got an amazon EC2 instance, which starts up, runs a script, and when the script finishes, I want to shut it down. I tried chmod g+s to give super user privileges on a .sh script which called ...
0
votes
2answers
9k views

I have WHM root access but unable to connect using SSH

I have root WHM password for a domain and I am able to login using following URL http://domain_name/whm But when I use the same root password to connect to server using SSH I get access denied ...
0
votes
2answers
99 views

Limited root access

I have a rather unique situation that I need to come up with a solution for. We have servers by which a remote team requires having root access to our servers to perform certain jobs. We need to still ...
0
votes
2answers
411 views

how to check if my root server was compromised

My provider sent me an email stating that my root server seems to have been misused for attacking other systems. How do I check if this is true and my system is compromised? I was told I have 4 days ...
0
votes
2answers
149 views

Working out some quirks of a master SSH server

I am starting a web hosting company and there are a few details that I have yet to figure out, one of them being some sort of SSH VPN to connect to our servers running CentOS 6 with cPanel. So this ...
1
vote
1answer
1k views

Home directory owner is root instead of user

I am adding users using the command useradd in opensuse 12.1 and creating a home directory on NFS. The problem here is the home directory's owner is root instead of user. msvlsi67:~ # useradd -g ...
-1
votes
1answer
199 views

Logging in as root [duplicate]

Possible Duplicate: What's wrong with always being root? I have a server running in a datacenter with strong firewall & VPN protection. I have a few java apps which I have written ...
1
vote
2answers
1k views

Run a script as root from apache

I would like to update my hosts file and restart dnsmasq from a web interface (php/apache2). I tried playing around with suid bits (the demonstaration). I have both apache and dnsmasq running on an ...
4
votes
1answer
267 views

Downgrade/replace root user?

Is it possible to safely downgrade the user 'root', replacing it with a different account name? (say 'admin'). So, in the end, 'admin' would be uid 0 and 'root' 123. I am using Centos, if that makes ...