Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: user

07 May

Restrict Top to Current User’s Commands

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


top -u `whoami`
OR
top -u binnyva(your username)
admin Posted in Command Line, Linux command, Linux, process, restrict, show, top, user 1 Comment
08 Mar

The who Command

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
admin Posted in Command Line, Linux command, filler, Linux, logged, user, who Leave a comment
27 Jul

pwck Command

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


pwck
admin Posted in Command Line, Linux command, Linux, password, pwck, user Leave a comment
24 Jul

Delete User

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


userdel -r user1 
admin Posted in Command Line, Linux command, delete, Linux, remove, user, userdel 1 Comment
23 Jul

Password Deadline

Set deadline for user password


chage -E 2008-12-31 user_name
admin Posted in Command Line, Linux chage, command, deadline, Linux, password, root, user Leave a comment
22 Jul

Change User Attributes

Change a user’s attributes


usermod -c "User FTP" -g system -d /ftp/user1 -s /bin/nologin user1
admin Posted in Command Line, Linux command, Linux, user, usermod Leave a comment
21 Jul

Create New User

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
admin Posted in Command Line, Linux command, group, Linux, user, useradd Leave a comment
15 Jul

Rename an User Group

Rename a group


groupmod -n new_group_name old_group_name
admin Posted in Command Line, Linux command, group, Linux, rename, user 5 Comments
25 Dec

Finger Command

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.
admin Posted in Command Line, Linux cli, command, finger, Linux, user Leave a comment
12 Oct

Single User Mode in Linux

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)

admin Posted in Linux debug, kernal, Linux, mode, single, troubleshoot, user Leave a comment

Post navigation

← Older posts

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑