Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Individual accounts with Individual permissions to files & directories

Status
Not open for further replies.

Darkfire99

Technical User
Dec 10, 2001
2
AU

Hi all,

Can anyone out there help me? I'm trying to create individual accounts and allocate individual permissions to directories and files. We are using HPux, I'm after the simplest and most effective way to do this.

Please Help !!

Thanks
 
Ok, you create user accounts which have both a users login name and a user id number. Lets assume your username id fred

Then you create a file
touch filename
Then you change ownership of file
chown fred filename
Then you change permissions
chmod 700 filename

If you now do
ls -al filename
you will see ...

- rwx --- --- fred ........... filename

Ther file is now owned by fred, and he has exclusive read, write and execute permissions on that file. No one else can read write or execute the file (except root of course)

Hope this helps you.


 
To create the indidual accounts, you should use "sam". It is a menu driven toool that will aloow you to create the users and groups, and will set the right permissions on the users home directory.
For other directories, do as trunix says. Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top