Linux Admin Blog

System Administration, Linux, Solaris, Backup, Networking, Security, Mysql, Script, Tips & Tricks

Archive for the ‘CentOS 5’ Category

Update system

Posted by sanjaydalal4u on September 29, 2009

update

Posted in Update system | Leave a Comment »

Configure Services in CentOs5/RHEL5

Posted by sanjaydalal4u on September 29, 2009

1) List All services

listservices

2)  List Running services at Runlevel 3

listservices34

3) Start service

startservices

4)      Stop service

stopservice

5)   Start service on different RunLevel

stopservice

6)  Restart services

restartservice

7)  Add services

addservice

8 ) Remove Services

deleteservice

Posted in Configure Services | Leave a Comment »

CentOS5/RHEL5 User Administration

Posted by sanjaydalal4u on September 29, 2009

1) Add User

Useradd

2)      Delete user

Userdel

3)      Modify user

Usermod

4) Add Group

gpasswd

5) Delete group

groupdel

6) Modify group

groupmod

7) Add User to Group

Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:

Syntax:

useradd -G {group-name1},{group-name2} username (for secondary group)

useradd -g {group-name} username (for primary group)

useradd1

Posted in User Administration | Leave a Comment »