Visit Our UNIX and Linux User Community

CentOS using sudo command

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers CentOS using sudo command
# 1  
Old 04-03-2011
CentOS using sudo command

Hi, this is my first time posting here and am new to linux/unix. So here is my question.

I have two user account and a root account.

user account 1:calchen1
user account2: calchen2

Now i want to use the sudo utility to allows user to run programs with the privileges of
another user. Basically to grant the superuser privileges to one of the two users that I created, so that the chosen user can perform important system tasks using his/her own password, without knowing the root password. So any advice on this one?

This is what I have so far for giving user account 1 superuser privileges.

"visudo calchen1 ALL=(ALL) ALL"

is that correct (school server is down, i have no way to test it)?

# 2  
Old 04-03-2011
visudo is a program to edit the sudoers file. It invokes the vi editor. Then you use standard vi commands to edit the file. You could add a line to the file while you are in the vi editor. But you show a command line that seems to include a new line as arguments to the visudo program. That won't work.
This User Gave Thanks to Perderabo For This Post:

Previous Thread | Next Thread
Test Your Knowledge in Computers #650
Difficulty: Medium
Linux distributions have not define their own applications menu for Window Maker.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SUDO command in script

hi, can some one explain the sudo -n equivalent in AIX Thanks Venkat K (5 Replies)
Discussion started by: venky.b5
5 Replies

2. UNIX Desktop Questions & Answers

Jar command nor working in centos

Hi All, I have a jar file and I want to extract that jar file. I am using command jar xf Sample_Pack.jar After pressing enter this command returns no error and is not even executed. Pls help (1 Reply)
Discussion started by: Palak Sharma
1 Replies

3. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

4. Linux

sort command in centos linux os

Iam working on centos os. Iam not able to sort records without option Please help me out Jayaprakash B. (1 Reply)
Discussion started by: jpachar
1 Replies

5. Linux

sort command in centos unix

Iam working in centos linux operating system. Consider the following file by name emp 1008 Vijay 40 1009 Rekha 34 1010 Shreyas 40 1011 Sanjay 40 sort command is not working. I gave sort emp The command is not working Can somebody send the options under centos linux (1 Reply)
Discussion started by: jpachar
1 Replies

6. Shell Programming and Scripting

ssh sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ ssh sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

7. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks! When attempting to use sudo on and AIX machine with oslevel, I get the following error: exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies

8. UNIX for Advanced & Expert Users

Sudo command

Hello, What does the below sudo command provide access to, does it allow a user to su to any other user except root. sudo !/usr/bin/su * (1 Reply)
Discussion started by: sophos
1 Replies

9. UNIX for Advanced & Expert Users

Sudo command problem

Hi All, I am tring to redirect mails comming to my user id to a script. In other word trigger a script when a mail comes to my user id. Actually , Admin team has done all this to me previously. in my script i am doing like /usr/local/bin/sudo -u parbrxs /export/home/parbrxs/bin/ (4 Replies)
Discussion started by: mindtee_abhi
4 Replies

10. Solaris

Sudo for a command

I am trying to set up sudo for a command, but do not want to specify the arguments that can be passed into it. I want the user who is using sudo to be able to pass in the arguments they want. I am fairly sure I know how to do this with RBAC in Solaris 10, but for reasons I will not get into I... (1 Reply)
Discussion started by: synchro
1 Replies

Featured Tech Videos