Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




After Work

Highlife Adventures
The best club in Chicago
for Chicago Singles is Highlife Adventures!


Single Women



Kyoto Sushi
in Chicago, on Lincoln Ave.
Moody's Pub
in Chicago, has great burgers
Skylark
in Chicago, on Halsted .. excellent beer selection!


UNIX » Commands » Basics »

User Accounts

     



Adding a unix account involves creating the login and home directory,
assigning a group, adding a description, and setting the password. The
.profile script should then be placed in the home directory.












# add jsmith account .. the -m parm forces the home dir creation
useradd -c "Jim Smith" -d /home/jsmith -m -s "/usr/bin/ksh" jsmith

# change group for jsmith
chgrp staff jsmith

# change jsmith password
passwd jsmith

# change jsmith description
usermod -c "J.Smith" jsmith

# remove ksmith account
userdel ksmith

# display user accounts
cat /etc/passwd

/* here is a sample .profile script, for sh or ksh */
stty istrip
stty erase ^H
PATH=/usr/bin:/usr/ucb:/etc:/usr/lib/scripts:/usr/sbin:.
export PATH
PS1='BOXNAME:$PWD>'
export PS1










UNIX : Related Topics

UNIX : Commands : File Permissions
UNIX : Commands : Using Tar
UNIX : Commands : Find files, current directory only
UNIX : Commands : Sort a file, with a specific key
UNIX : Commands : Listing Files
UNIX : Commands : Moving and Copying Files
UNIX : Commands : Deleting Files
UNIX : Commands : Disk Usage
UNIX : Commands : Running a process, spawning a process
UNIX : Commands : Killing a UNIX process
UNIX : Commands : Redirecting Output
UNIX : Commands : Misc UNIX Tips
UNIX : Commands : Displaying a File

Sybase Web Site
Sybase Mobile Web Site
Oracle Web Site





Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2010 Stoltenbar Inc All Rights Reserved.