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
3answers
849 views

SSH hosts.deny and hosts.allow

I have this content in hosts.deny (with a new line at the end): # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided ...
2
votes
2answers
3k views

SFTP Access Restricted with new Sudo Root User

So in attempts to secure my server a bit, I created a new user with su - root access and denied root login. Now I can't SFTP any files on my server through Filezilla with this user. These are the ...
9
votes
2answers
2k views

What's the best solution to manage root password of thousands servers

I'm a system administrator. In the production environment I need to manage thousands of servers. My colleagues and I uses a central manage server and distribute its public key through other servers. ...
2
votes
2answers
512 views

Remotely use root over ssh for unison

I'm a little confused on how to run unison to sync files with group and owner attributes on an ubuntu system, as you need to be root. But I need to do this remotely and automated. I know I can set up ...
2
votes
2answers
766 views

How to give ownership to root without being root ? (needed for Apache)

I've got a PHP script that creates a folder on my server. This folder is supposed to be accessed via Apache, and users can view it online. Now if I create this folder while being root, everything ...
0
votes
2answers
2k views

Apache/PHP root exploit

Because of insecure handling of uploaded files, an attacker was able to run php code on my server (CentOS 5.4) That issue has been fixed, but while he was connected he appears to have modified a file ...
0
votes
3answers
327 views

Git: push via ssh to a root owned repository with ssh root logins disabled

is that even possible? Summary, i'm running puppet master on a server and ideally we want root logins via ssh disabled, we want to force all access via sudo if root access required however we have ...
-3
votes
2answers
117 views

Automate root ssh scripts [closed]

We require to be able to run some script as root from nothing other than an SSH login. IE, we have root and password, and we need to perform a script action on a bunch of servers.
8
votes
1answer
554 views

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to ...
0
votes
3answers
1k views

How to give user root access without giving him root password

The scenario is this: I have a development machine I want (need) to have root access to Our admin setups the machines using his own credentials for the root user. The explanation being that if ...
-1
votes
4answers
173 views

Linux /home privacy

Warrning: this is probably against Unix philosophy and desgin, but I will ask it anyway. Is there a way to achive privacy for three seperate /home/user folders? Problem which is rasing that ...
4
votes
3answers
2k views

Run application as root without sudo

I have an application (VirtualBox) which I need to run as root user. I can run sudo VirtualBox just fine, but I want to have a shortcut on my Desktop which I only have to click on to start VirtualBox ...
93
votes
23answers
7k views

How do you make it obvious you are on a production system?

A few of us at my company have root access on production servers. We are looking for a good way to make it exceedingly clear when we have ssh'd in. A few ideas we have had are: Bright red prompt ...
3
votes
1answer
2k views

Linux :: Shared aliases in /etc/profile.d not applied to root user, why?

On my Fedora 14 developer machine I can add a sharedAliases.sh file to /etc/profile.d -- both my user and root user then have access to the shared aliases. Switch over to remote CentOS 5.7 machine ...
14
votes
2answers
777 views

how do i perform root actions from non-root account?

I want to be able to restart services from a php-script. running under the www-user account. What's the preferred way to perform these actions? I recon I can place create a file with que'd commands, ...
1
vote
1answer
1k views

Booting root filesystem on LVM

I can't seem to make this work (or find info on the internet on the issue). Are there any additional settings when creating initramfs with the root filesystem on lvm? This should be the settup: ...
1
vote
1answer
1k views

How to share drive root of USB hard drive in Windows Server 2008?

Windows Server 2008 -> Computer Management -> System Tools -> Shared Folders -> Shares I can set up a share for the root of the external drive, but I cannot access it from another computer on the ...
0
votes
2answers
126 views

How to avoid accidental root access to non-world-readable directories?

Given the following directory: drwx------ 2 joe joe 4096 Jan 11 2010 /home/joe Is there a way for me as the user root, to avoid accidentally cd-ing into this directory? I'm not looking for actual ...
-1
votes
1answer
47 views

Amazon EC2 fault after upgrade lose root access

ufff I upgrade my instance with amazon ec2 . I login again with my keypair and OK I am there User ubuntu Now I make sudo su or sudo -i and now the system ask password . What password I not setup any ...
0
votes
2answers
52 views

How do I find current root logins

How can I identify all terminals that have a root login on them on Linux? who -a seems to give me regular logins but what about root?
8
votes
2answers
540 views

Accidently locked myself out of MySQL by changing the host

While trying to get remote MySQL working, I somehow managed to lock myself out with the root account. Normally, I would stop the MySQL service and restart it using /etc/init.d/mysql --init-file, but ...
1
vote
2answers
379 views

How to add root user in nis passwd file?

One of the sys admins accidentally moved aside /etc/passwd... doh! Restoring the file from backup doesn't work... it errors out because root user does not exist. I've got NIS running at this site and ...
1
vote
2answers
1k views

My MySQL root user is gone, how do I recover it?

I was trying to move the MySQL tables so them were in another folder, so I messed out the plugins table or something like that and I ended up reinstalling the whole thing. I did sudo aptitude purge ...
0
votes
1answer
42 views

CVS does not run properly as nonroot user

I get an "rejected acces to DIR for user USER" message, when I try an "cvs login" to my local cvs... BUT everything works just fine, when cvs is set to run as root... Im running FreeBSD 7.2, here is ...
3
votes
3answers
5k views

Linux: Send email to another address instead of /var/spool/mail/root

I manage a micro linux server on Amazon EC2. Occasionally I get email sent to the root account and if I'm logged in, I'll get the notice: You have new mail in /var/spool/mail/root How do I get ...
1
vote
2answers
176 views

Debian: Unable to connect to ssh with a user I just created

I've a debian 6 installed on a server. I installed ingres on this server, which runs now with the user "ingres", I want to connect to ssh with the ingres user(for many reason, one of them is that ...
6
votes
1answer
500 views

PostgreSQL: Living without root

This is not a question with a concrete answer, I know, but one that seeks experienced views... The OS environment I run is as vanilla as possible so it's often undesirable to install things into root ...
0
votes
5answers
254 views

run script from ssh as non root linux

hey well I login to my ssh client as the root user, since I don't know how to do it any other way and then why I try to run this script using the plain old ./filename.ext an error log is generated ...
1
vote
4answers
113 views

How to re-gain access to a running EC2 instance?

We own an AWS account but we're no longer in contact with the developer who had sole access to the running EC2 instance. Restarting the instance may not be possible: As far as we understand, shutting ...
0
votes
1answer
2k views

How can I expand the /dev/root partition?

How can I expand /dev/root? I can't seem to do this using an LVExtend command. Thanks, James
0
votes
1answer
246 views

D-Link DMC-1002 Management Module Password Reset

We just purchased a D-Link DMC-1000 media converter chassis with a DMC-1002 management module. Connected to the module through a COM port and PuTTy and changed the root password. Subsequent login ...
1
vote
3answers
2k views

Access file outside document root

I'm trying to write on a file that is outside the document root, which is /var/www/html. The file I want to access is /home/user/files/folder1/info.txt, but my PHP file can't open it (it does even say ...
0
votes
0answers
50 views

PHP not functioning outside vhosts directory - why?

I've got Apache 2.2 working, and my virtualhosts work within the following directories: C:/www (main Apache root) C:/www/vhosts (virtual hosts) However, I cannot get PHP files to function outside ...
6
votes
3answers
3k views

How to get the number of available updates on an Ubuntu system as a normal user

I need this for a simple monitoring script which i don't want to run as root...
2
votes
2answers
471 views

Reset mysql root password after phpmyadmin corrupted it [duplicate]

So I tried to change my mysql root password for the first time using a advanced pattern and it looks like phpmyadmin stripped the password on save. Now I can't login under root. I am using RHEL 5 ...
2
votes
1answer
354 views

Main Apache pid as root, even though set up to be nobody?

I believe I had set everything up correctly when I had built the server (maybe it was a pre-configured LAMP that the VPS host Linode supplied that set things up) It seems that every Apache process ...
19
votes
4answers
3k views

Ordinary users are able to read /etc/passwd, is this a security hole?

ls -l /etc/passwd gives $ ls -l /etc/passwd -rw-r--r-- 1 root root 1862 2011-06-15 21:59 /etc/passwd So an ordinary user can read the file. Is this a security hole?
2
votes
3answers
2k views

running red5 on port 80

I have a red5 application http://code.google.com/p/openmeetings that runs under red5, and is accessible on port 5080 and 8443 I've installed it on Ubuntu 10.04 The eventual aim is to have it ...
4
votes
2answers
2k views

RSync over SSH - permission denied even though the user is in the root group

I have a need to copy files between servers through the web. I'm using RSYNC over ssh to do so. The problem is, I need to be able to transfer files, no matter where the files is. I created a user ...
0
votes
4answers
1k views

Bash script normal user to Root

I have some question. I'm trying to create some bash script to automatically some task. I need to do the first step of the task as normal user, and su - to be root to finish the task. I've been ...
0
votes
1answer
156 views

Member of root group on two different computers, permissions don't match

I am a member of the root group on two different computers. On one computer I can do almost anything while I can't do these same things on the other. Example: iptables --list which is owned by ...
0
votes
2answers
524 views

How can I limit root to being able to only login on the console via /etc/security/access.conf

I know that I can prevent root from logging in via ssh with /etc/ssh/sshd_config but the auditors also want to see it done in /etc/security/access.conf as well. It seems doable but I can't determine ...
3
votes
2answers
912 views

Allow non root access to /root folder

I have a folder that normally lives under /root and is usually used by a root user. I need to allow another user (other than root) to use it now, but it has to remain under /root. Is that possible? ...
5
votes
1answer
245 views

Ports below 1024

DISCLAIMER: I know how to run daemons that either listen on ports <1024 by using privbind or some iptables REDIRECT. Or more generally spoken, how to make daemons available on priviliged ports that ...
2
votes
4answers
5k views

Is there any way to point the root domain to a CNAME? [duplicate]

Here is the problem: we host our website with an external provider that doesn't give us an IP address, rather, they give us a domain where we point our www CNAME record to. I assume they are using ...
0
votes
1answer
163 views

Running a script as root at bootup

I have a simple script to help me do some power saving: #!/bin/bash echo 1 > /sys/module/snd_hda_intel/parameters/power_save echo min_power > ...
6
votes
4answers
1k views

Correct user names when tracking /etc/ in git repository and committing as root

We use git to track changes in /etc/ on our servers. Administrators work as root when changing files in /etc/, and thus their commits have author root <root@machinename> This is not very ...
2
votes
1answer
273 views

How do I regain access to root after accidental chsh command that went bad?

I did a silly silly thing. While attempting to change the shell for user 'x' I was in a rush and did not type the users name at the end of the command, so I ended up running this: chsh /sbin/nologin ...
0
votes
1answer
222 views

Locked out of EC2 ubuntu instance

root access worked on my EC2 instance for a couple of weeks until I did sudo aptitude update sudo aptitude upgrade and now sudo asks for a password (which I have never been given). I can't ...
2
votes
7answers
879 views

Changed root's shell to non-existing path

I just made a bit of a mistake: Fresh install of FreeBSD 8.2 logged in as root installed bash from ports created users, setting bash as shell vipw (edit passwd file) changed root's shell from ...