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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set folder permissions 1

Status
Not open for further replies.

georgesz

Technical User
Jun 8, 2003
59
US
Hello everyone!

I am brand new to AIX (4.3.something), and I need to set full control permissions to a user in her home directory.

At this time she seems to be able to list the contents, but she cannot copy a new file into her home folder, or execute an SQL script from there.

What command (and syntax) do I use to add full control on that folder and all contents for that user?

Also - is there some Windows program/utility to manage an AIX file system from an XP workstation?

Thanks in advance!

Georgesz@hotmail.com
 
If you do ls -al at command prompt you will see

dr-xr-xr-x at the beginning of each line

1st Char
d = directory
- = file
there are others but dont worry about those at the moment

2-4 Char = Owners permissions r=read w=write x=execute
5-7 Char = Group permissions
8-10 Char = rest of world

So cd to /home

and issue the following command

chmod 770 users_directory

E.g.

chmod 770 george

a simple explanation of the numbers is

- 421 421 421
rwx rwx rwx

to set read for all

4+0+0+4+0+0+4+0+0
chmod 444 filename = -r--r--r--

to set read write execute for all

4+2+1+4+2+1+4+2+1
chmod 777 filename = rwxrwxrwx

see man chmod for more info


--
| Mike Nixon
| Unix Admin
|
----------------------------
 
You have to be root to do this:

cd into the person's home directory.
At the command prompt, type ls -ld. You will see who owns the directory and what the permissions are.

If the user doesn't own the home directory, type cd .. to go up one directory and type chown <username>:<usergroup>

The permissions should look something like this:

drwxr-x--- 2 jdoe staff 512 Oct 14 2002 .


The rwx indicates that the user has read, write and execute permissions on the directory.

the r-x indicates that anyone belonging to the staff group has read and execute permissions on the directory.

The --- indicates that anyone who isn't jdoe or part of the staff group cannot read, write or execute permissions.

To set the directory with these permissions, type chmod 750 /home/jdoe.

Do a man on chmod and chown to learn more about these commands.

 
thanks guys!

I will get after it...

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top