Create
a user to user_test on ANNANTIKA server. User description is given below.
User
Name:- user_test
Primery
group:- dstage8::205:
Secondry
group:- dba::200:
Access
on folder :-/abc/bipdata/abc_test
Check there is any user available in /etc/passwd for
same name
# more /etc/passwd|grep -i <user_Name>
If not follow the
below mentioned step.
1.
Take a
backup copy of hosts file.
Annatika#cp -p
/etc/passwd /tmp/passwd.<current_date>
2.
Add
the user by using command line
Useradd –g<P_group> -G <S_group> -C
<U_Des> -d<Home Dir> -s <Login_Shell> -m <U_Name>
Eg:-
Annatika#useradd -g dstage8 -G dba –C user_test
-d /home/user_test -s /bin/csh -m user_test
Option:-
g :- For
primary user group
G :- For Secondary user group.
d :- For home
directory.
s :- For user
login shell
m :- For user name.
C :- For user Description.
3.
Set
the user password.
#passwd
<User_Name>
#New passwd: <Password>
#Re-enter New passwd:<Password>
Eg:-
Annatika#passwd user_test
Annatika# New password:*******
Annatika# Re-enter New Password:*******
4.
Check
the user is created and password.
#telnet <server_name> (User has created on Server)
Login: <user_name>
Password:******
Eg:-
ukcsbdu1#telnet Annatika
Login user_test
Password: *******
ukcsbdu1#exit
5 Check
the user home directory and group etc.
#cd <home_directory>
# more /etc/group|grep –i <group_name>
Eg:-
ukcsbdu1#cd /home/user_test
ukcsbdu1#more /etc/group|grep -i dstage8
ukcsbdu1#more /etc/group|grep -i user_test
ukcsbdu1#more /etc/group|grep -i dba
If the user is not added in particular group use
following command for adding in group.
usermod -G
<Group Name> <User Name>
Note:- For primary
user group use g option.
6 Check Where user is able to access the following folder.
Annatika#cd <Folder path>
No comments:
Post a Comment