Posts Tagged With: user

Restrict Top to Current User’s Commands

Tagged with: , , , , , ,

Show only your processes in the top list using this command…


top -u `whoami`
OR
top -u binnyva(your username)
1 Comment »

The who Command

Tagged with: , , , , ,

Show who is logged on, and print: time of last system boot, dead processes, system login processes, active processes spawned by init, current runlevel, last system clock change


who -a
No Comments »

pwck Command

Tagged with: , , , ,

check correct syntax and file format of ‘/etc/passwd’ and users existence


pwck
No Comments »

Delete User

Tagged with: , , , , ,

Delete a user ( ‘-r’ eliminates home directory)


userdel -r user1 
1 Comment »

Password Deadline

Tagged with: , , , , , ,

Set deadline for user password


chage -E 2008-12-31 user_name
No Comments »

Change User Attributes

Tagged with: , , ,

Change a user’s attributes


usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1
No Comments »

Create New User

Tagged with: , , , ,

Create a new user belongs “admin” group called ‘user1’


useradd -c "Name Surname " -g admin -d /home/user1 -s /bin/bash user1

There is a simpler command too…


useradd user1
No Comments »

Rename an User Group

Tagged with: , , , ,

Rename a group


groupmod -n new_group_name old_group_name
5 Comments »

Finger Command

Tagged with: , , , ,

System info about a user. Try: finger root. An admin needs it all the time


finger user_name
#finger root
Login: root                             Name: root
Directory: /root                        Shell: /bin/bash
Last login Tue Nov 27 20:19 (IST) on tty1
No mail.
No Plan.
No Comments »

Single User Mode in Linux

Tagged with: , , , , , ,

To get into single user mode in Linux, stop the boot at grub then edit the kernal you want to boot and add the word ‘single’ at the end. For example ‘kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet single'(your line may be different)

No Comments »