Questions tagged [root]

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

548 questions
5
votes
2 answers

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...
Moutaz
4
votes
0 answers

root access to GlusterFS volume with root-squash

I want to export my glusterfs volume with the option server.root-squash enabled, so that clients (over which I have no control) can't perform actions as root on the volume. However I, as and admin, would like to still be able to access files as…
lgpasquale
  • 141
  • 1
4
votes
1 answer

Cron job as root need to sudo to another user

RHEL6 In root's crontab a have: * 21 * * * /root/script.sh In script.sh there is a line: /usr/bin/sudo -u jira bash -c 'cd /opt/jira/bin; ./stop-jira.sh' && echo "Jira Shut Down" >> /root/debuglog The command executes in a regular shell but not when…
Codefire
  • 43
  • 1
  • 1
  • 5
4
votes
1 answer

Kerberos, .k5login and sudo

Background: I am using a Debian 7 system which I have integrated with an LDAP+Kerberos system using libnss-ldap, libpam-krb5 and nscd. I have modified sudoers to permit an LDAP group the right to sudo and gain super-user privileges. Hence, I can log…
Cosmic Ossifrage
  • 1,640
  • 14
  • 23
4
votes
2 answers

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 the logged-in user, so far as I can tell. [I'm sure…
Clinton Blackmore
  • 3,520
  • 6
  • 36
  • 61
4
votes
1 answer

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 Samba and internal resolving work fine. However…
Huzefa Akhter
  • 41
  • 1
  • 3
4
votes
1 answer

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 shutdown, but that didnt work. Is there another…
Codek
  • 203
  • 2
  • 9
4
votes
1 answer

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 any difference. What worries me is if any of the…
john
  • 1,025
  • 3
  • 9
  • 15
4
votes
1 answer

What are the pros and cons of enabling the root account on OS X?

Mac OS X machines have the root user disabled by default. Is this the right setting for a web environment? Specifically, the computer would be running Apache 2, MySQL 5, PHP 5, and other useful web serving software. Administrators would deal with…
stalepretzel
  • 834
  • 4
  • 15
  • 19
4
votes
3 answers

Remove user from root group

Somehow I managed to add user Tom to root group in Ubuntu, in order to avoid using sudo everytime (bad decision). Now I want to remove it and I can't. I've tried using usermod -G {groups} Tom My /etc/sudoers file is the following: Defaults …
Joaquín L. Robles
  • 157
  • 1
  • 1
  • 8
4
votes
1 answer

permission denied for chmod as root

I need to manage a customer's openvz guest (latest debian squeeze 64 bit). Now when I try to do a chmod 0750 /root as root it gives me Permission denied. This really puzzles me, as I thought root can do everything. As far as I can tell there's no…
gucki
  • 818
  • 2
  • 11
  • 29
4
votes
2 answers

how to deny "sudo su"

I have several servers where some users require to be sudoers to work. The problem is that when sudoers can run the command sudo su and login as user root. It seems very risky to run that command. I tried with Command Alias ​​in the file…
Gon
  • 91
  • 1
  • 2
  • 8
4
votes
2 answers

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 ssh keys and the such for my user but that…
Elgoog
  • 215
  • 3
  • 6
4
votes
2 answers

Reset mysql root password after phpmyadmin corrupted it

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 and it seems that all the instructions I keep…
Richard Dev
  • 219
  • 2
  • 11
4
votes
2 answers

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 rsync and : usermod -G root -a rsync to give him the…
Bastien974
  • 1,896
  • 12
  • 44
  • 62