Hi guys, I'm searching for a way to have root privileges momentarily like on ubuntu with the sudo <user> <command>
I tried su - <command> and su -l root <command> on my CentOS server but it doesn't work how should I do ?
sorry for the disturbance I'm new in RH Linux distro
On Wed, Mar 31, 2010 at 3:51 AM, Georghy fusco@wanagain.net wrote:
Hi guys, I'm searching for a way to have root privileges momentarily like on ubuntu with the sudo <user> <command>
I tried su - <command> and su -l root <command> on my CentOS server but it doesn't work how should I do ?
sorry for the disturbance I'm new in RH Linux distro
Sounds like you have your solution... Install sudo and configure it so that particular users can use sudo to temporarily gain root privileges. You may even be able to copy your /etc/sudoers from Ubuntu directly to CentOS.
Kwan Lowe a écrit :
On Wed, Mar 31, 2010 at 3:51 AM, Georghy fusco@wanagain.net wrote:
Hi guys, I'm searching for a way to have root privileges momentarily like on ubuntu with the sudo <user> <command>
I tried su - <command> and su -l root <command> on my CentOS server but it doesn't work how should I do ?
sorry for the disturbance I'm new in RH Linux distro
Sounds like you have your solution... Install sudo and configure it so that particular users can use sudo to temporarily gain root privileges. You may even be able to copy your /etc/sudoers from Ubuntu directly to CentOS. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
there's no way to use su without installing new packages ?
there's no way to use su without installing new packages ?
sudo is different from su. su is definitely in the base installation, though sudo may need to be specifically installed.
You can use su without installing any extra packages, but you'll be given the user the root password to use su.
To use sudo you won't need the root password.
I'm searching for a way to have root privileges momentarily like on ubuntu with the sudo <user> <command>
I tried su - <command> and su -l root <command> on my CentOS server but it doesn't work how should I do ?
sorry for the disturbance I'm new in RH Linux distro
Sounds like you have your solution... Install sudo and configure it so that particular users can use sudo to temporarily gain root privileges. You may even be able to copy your /etc/sudoers from Ubuntu directly to CentOS.
there's no way to use su without installing new packages ?
su -c
Tom H a écrit :
I'm searching for a way to have root privileges momentarily like on ubuntu with the sudo <user> <command>
I tried su - <command> and su -l root <command> on my CentOS server but it doesn't work how should I do ?
sorry for the disturbance I'm new in RH Linux distro
Sounds like you have your solution... Install sudo and configure it so that particular users can use sudo to temporarily gain root privileges. You may even be able to copy your /etc/sudoers from Ubuntu directly to CentOS.
there's no way to use su without installing new packages ?
su -c _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
It worked thanks fo the tips :)