Professional Documents
Culture Documents
command
1.
introduction
2.
3.
4.
troubleshoot
introduction
An account is a set of details that describes a user to an OS (Operating System). Details
include a user name, a group that the user is a member of and a password that the user knows.
The OS uses an account's user name and group to decide whether a user is authorized to
perform an action. The sudo command allows a user to pretend she is someone else and
execute a command.
After allowing a user to use the sudo command you can change accounts using sudo.
2.
3.
root@ics01:>/opt/sudo/sbin/visudo
#######################################################################
#########
File:
/etc/sudoers
...
"/etc/sudoers.tmp" 129 lines, 5859 characters
4.
User_Alias CUSTOMER01 =
If you are adding a user to an existing group, this is all you have to do. Skip to the end.
5.
6.
CUSTOMER01 ALL=NOPASSWD:SUC1IWS
7.
:wq
"/etc/sudoers.tmp" 129 lines, 5869 characters
root@ics01:>
8.
1.
2.
3.
c1cefred@ics01:>sudo su - c1apiws
Uptime: 12:36pm up 95 day(s), 12:24, 33 users, load average: 0.20,
0.24, 0.28
c1apiws@ics01:>exit
c1cefred@ics01:>
4.
troubleshoot
Asked for a password
You may not have permission to do what you are trying to do. Press return to exit sudo.
c1apiws@ics01:>sudo su -
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:
c1apiws@ics01's Password: