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

6
votes
4answers
223 views

Where I work everybody logs in as root

Where I work now, I am forced to use the root account just like everybody else there does. There are no other users. Not even in the DBs. My seniors explained to me that this is done for convenience's ...
1
vote
0answers
30 views

Is it possible to setup ftp server in linux without the superuser privileges? [closed]

There are a lot of articles about setting up ftp server in linux. Most of them use vsftpd. This program takes configures from files from /etc directory so u can't configure vsftp not as root. So I ...
-1
votes
0answers
22 views

Accidentally chown [duplicate]

I accidentally executed command on c e n t o s 6.4: ch own -R a p ache:a p ache / Then i executed the command and hope rollback everything : ch own -R root:root / But later i logout server Then ...
3
votes
2answers
3k views

Permission denied for root to change inotify max_user_watches, how solve this?

As root in a CentOs 6.4 server I got this error in an application: Fri May 16 01:45:23 2014 Error: Terminating since out of inotify watches. Consider increasing /proc/sys/fs/inotify/max_user_watches ...
-1
votes
2answers
72 views

linux + when change passwd we get permission denied

We have installed Redhat Linux 6.5 from scratch the VIA kick start installation and booted into single user mode because I don't have the root password. But when I perform the following: passwd root ...
1
vote
3answers
2k views

How to reset root password CentOS (domU) hosted in Xen?

Need help on resetting root password of a CentOS which is a guess OS (domU) in XEN. I already tried to get to grub but it doesn't display or maybe using a different grub (pygrub). Thanks in advance.
9
votes
5answers
22k 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 ...
0
votes
2answers
16 views

Removing root access from pre-existing user accounts

I have a group of servers that I want to retain the users and their data. My problem is that my users already had root access to their servers and some have installed software using the root account. ...
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 ...
2
votes
3answers
795 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
0answers
2k views

ProFTPd unable to seteuid

I'm trying to figure out this problem: 2014-04-07 14:00:58,628 srv proftpd[10143] srv (pfsense.localdomain[192.168.0.1]): FTP session opened. 2014-04-07 14:01:13,779 srv proftpd[10091] srv ...
11
votes
5answers
56k 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 ...
0
votes
3answers
2k views

Cannot start apache (Unable to change directory to /root)

When trying to start Apache by using: /etc/init.d/httpd start I get the following error in /var/log/httpd/error_log: Unable to change directory to /root Anyone have any idea what this means?
4
votes
1answer
3k views

How do I “sudo -i” specific command

I need to run important_script.sh as with sudo -i without password. If I have in sudoers: apache ALL = (root) NOPASSWD: /blah/important_script.sh and run "sudo /blah/important_script.sh" I can ...
0
votes
1answer
30 views

SUDO command only works as root (Solaris 10)

After installing sudo in the system i am unable tu run sudo as a non-root user, when i try to execute any command i get: /usr/local/bin/sudo: cannot execute if i edit /etc/passwd to use a different ...
-1
votes
1answer
52 views

Passwordless root login with ssh tectia denied by policy

I need to setup passwordless root access with ssh tectia. I've done the following: created keypair via ssh-keygen as usual copied private key to *source_host*:/etc/opt/SSHtectia/keys/root . Also i ...
1
vote
1answer
25 views

Why do I need to start services using sudo when logged in as root in an LXC container?

I've got an unprivileged LXC container which I've set up following the steps outlined on Stèphane Graber's website. Things work pretty well, but I'm having trouble starting php-fpm even though I am ...
6
votes
1answer
568 views

PermitRootLogin is no, I cannot login but why password is asked from user?

I have disabled PermitRootLogin and I cannot login to server by root, but password is asked from user: Is this correct? Or there is something here that I'm missing? Why password is asked when it ...
0
votes
1answer
38 views

Debian: How to lock root account AND still use cron. (cron does not work while locked account :( )

I'm setting up a small private server which is connected to internet. For security reasons I would like to lock my root account after setting everything up and then use a sudo user for further ...
0
votes
5answers
131 views

Preserve ownership with rsync, without root

I would like to perform incremental backups (for the entire filesystem) from a machine. rsync does this quite will, however I would like to also preserve file ownership - meaning, make it possible to ...
-1
votes
2answers
235 views

nginx 1.8.1 only works with default root

I have Cent OS 6.6 with nginx 1.8.1 installed. It seems like if I change the root in the conf file to something other than the default '/usr/share/nginx' it gives an error 403 Permission denied. I ...
0
votes
0answers
76 views

Ansible log in as regular user and become root

using the new "become" syntax, how do you configure your playbook to log in to a host as a regular user, switch to the root user and ask for a password? I tried: --- - hosts: foo gather_facts: no ...
51
votes
13answers
7k views

Linux: productive sysadmins without root (securing intellectual property)?

Is there any way to make a seasoned Linux syadmin productive without giving him full root access? This question comes from a perspective of protecting intellectual property (IP), which in my case, is ...
1
vote
2answers
27 views

Prevent root in linux from changing folder permissions in GPFS filessystem

I have created a NFS export in a GPFS/SpectrumScale filesystem I created. I have enabled AD based authentication with our domain. Everything works. The NFS export was created with NFS4. The NFS ...
1
vote
1answer
22 views

Unable to mount NFS export unless I sudo to root

I created an NFS export on a GPFS/SpectrumScale filesystem I set up. I tested the NFS export on a xLinux, pLinux, z/OS and AIX succesfully. I then enabled AD based authentication on the NFS export ...
5
votes
3answers
56 views

Can I simulate an S3 bucket going down when it is accessible to root user?

I'm trying to test new network monitoring code for an application that runs on a Debian appliance. I am currently tasked with ensuring that an SNMP trap is thrown when external network shares (such as ...
0
votes
0answers
29 views

How to autostart node forever and spawn() as sudo?

My app periodically spawns a CasperJS scraper: spawn(CASPER_PATH, [SCRIPTS_PATH + fileName, '--ssl-protocol=any', '--user='+user, '--scrapeId='+scrapeId, '--pass='+pass], { ...
0
votes
3answers
3k views

Root users and mysql: `sudo mysql` vs `/root/.my.cnf`

I have a /root/.my.cnf file which stores the mysql root user's password: [client] password = "my password" When I log in as system root and enter mysql, I get a passwordless login: myuser@local:$ ...
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 ...
9
votes
3answers
21k views

Allow linux root user mysql root access without password

On cPanel when I am logged in as root and type "mysql" without hostname and password it gives me direct access to mysql root user. I would like to do this for one of my non-cpanel server where the ...
4
votes
2answers
4k views

SSH VPN tunnel without having to enable root

ive been trying to setup a VPN SSH tunnel and ive had success executing ssh -Nv -w 0:0 root@192.168.2.2 -p 50 however what i am wondering is, can i do the tunneling without having root unlocked ...
1
vote
1answer
107 views

How to btrfs check a root partition

I'm sure the reason I'm having a brain fart is because it's late, but how can I go about performing a btrfs check on the root partition? The device needs to be unmounted, which can't happen because ...
0
votes
1answer
25 views

give www-data the permission to write into /home and others root directories

I have a big problem since few days with permissions on my Symfony2 application. The background : I write a PHP app with symfony2 which gives an overview of many Moodle instances on each servers ...
1
vote
0answers
12 views

Dell Switches and Spanning-Tree Route ID Configuration

I am analyzing a network for a colleague. It's a fairly simple topology and all the switches have converged on a common root-bridge, however two of the non-root bridges have identified the root as the ...
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 ...
1
vote
1answer
181 views

Why can't I completely remove myqsl from my CentOS 6 machine?

When I hit the command yum remove mysql I get the following error: Loaded plugins: fastestmirror Setting up Remove Process No Match for argument: mysql Error: File contains no section headers. file: ...
-3
votes
1answer
65 views

as root user why i am unable to delete file whose owner is root?

I am login as a root user but why I am not able to delete bellow file? #ONT/system/shell> ls -lt -rwxrwxrwx 1 root root 4824 Jan 1 1970 flash_lock #ONT/system/shell>rm ...
-5
votes
1answer
105 views

How to increase the size of the root directory in centos 6

how i can increase the size of the root directory .i face some problem of cache of my sql. result of command df -h # df -h Filesystem Size Used Avail Use% Mounted on ...
1
vote
1answer
114 views

Backup with rsync and exclude

I would like to do a partial backup from a server with rsync. my exclude file looks like this bin/ boot/ dev/ initrd.img initrd.img.old lib/ my problem is now, that every lib, bin and so on folder ...
0
votes
2answers
44 views

Limit the terminal access to root user in debian

A simple question, I've been looking everywhere and I couldn' find the answer : How can I limit my root account in Debian ? I need that the root have access only to one connection at a time in the ...
-3
votes
1answer
61 views

Cannot SSH in as root using Key

I have searched through serverFault and cannot rectify my problem. An explanation: Ubuntu 14.04 - I am able to SSH into the server using user amenczykowski with a key. I am unable to SSH into the ...
0
votes
4answers
323 views

Security policy: servers without root/administrator password

I am considering running public web and application servers with blank root/Administrator passwords, and I'm wondering whether this might be a bad policy. I see several advantages of having no ...
2
votes
1answer
72 views

How to log administrator activities in Red Hat Enterprise? [closed]

Is it better to use auditd or sudo logs to log root and other user activities on a Red hat enterprise machine?
49
votes
4answers
115k 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
2answers
42 views

Enable root to console login only and restrict ssh login for root only

I want to enable root login at the console only, and disable root login via SSH. However other users can still SSH to the server (Ubuntu 14) and even sudo if there part of the sudoers group. I have ...
7
votes
3answers
3k views

Write once, read many (WORM) using Linux file system

I have a requirement to write files to a Linux file system that can not be subsequently overwritten, appended to, updated in any way, or deleted. Not by a sudo-er, root, or anybody. I am attempting to ...
1
vote
2answers
4k views

NFS Share with root for anonuid / anongid

I've exported a share from my server and set anonuid and anongid to be 0 (root). However, when I mount the share on the client, it doesn't appear my settings are working as I'm getting permission ...
0
votes
1answer
42 views

Root Login Message

Does anybody have a idea how to do The following on Linux? $ ssh root@<HOST> Please login as the user "ec2-user" rather than the user "root". Not only disable the root login, but show an ...
1
vote
1answer
511 views

How to enable login as root on xrdp with centos and GNOME?

Was wondering if anyone knows how to enable root login on xrdp with GNOME and centos 6? Below is my config for /etc/xrdp/xrdp.ini [globals] bitmap_cache=yes bitmap_compression=yes port=3389 ...
0
votes
1answer
100 views

Elevating user to root with Ansible

How to elevate Ansible to root for running playbooks? The thing is that the server I want to provision has root access disabled and the only user that has login access has absolutely no permissions to ...