chmod question ?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers chmod question ?
# 1  
Old 05-31-2007
chmod question ?

Hi,

I am newbie in unix.
I have folder/file own by groupA, how to make that folder/file can write/read for groupB and read only for groupC, and others groups cannot read/write.
Can you help me?

Thank you.
# 2  
Old 05-31-2007
Try this...

make the directory group ownership as GroupA with read/write rights
make the other access as read only

put this directory inside another directory which has it's group set to GroupC. This has read/write group access. The other access of this is ---, this is the important part, if you are "other" you cannnot read/write or traverse (execute).

Then add all members of GroupA and GroupB to GroupC.

The rights would be as follows...

Code:
rwxrwxr-x fred GroupA /.../myparent/mydirectory
rwxrwx--- fred GroupC /.../myparent

so the path to the contents would be

Code:
/.../myparent/mydirectory/myfile

# 3  
Old 06-04-2007
oh.. so Unix permission cannot have multiple group with different permission.
Folder, for groupA write/read, groupB read only, and other no read/write.

Thank you.

Last edited by blesets; 06-04-2007 at 05:55 AM..
# 4  
Old 06-04-2007
Quote:
Originally Posted by blesets
oh.. so Unix permission cannot have multiple group with different permission.
Not unless your implementation of UNIX has some form of ACLs (access control lists).

However the restricting by parent directory should work.
# 5  
Old 06-04-2007
Quote:
Originally Posted by porter
Not unless your implementation of UNIX has some form of ACLs (access control lists).

However the restricting by parent directory should work.
Yes it's work, just little bit complicated to manage if I have hundred folder with different permission set. Because I want to migrate from windows server to Fedora. I will try FDS with ACL like u said. I have to read more about unix Smilie.

Thank you very much.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Find and Chmod Question

I have a folder called "test" and this folder contains lots of other folders as sub folders, i intend to search for all file ending with .bin and then change the files to executable please how do i do this ---------- Post updated at 10:48 AM ---------- Previous update was at 10:42 AM ----------... (3 Replies)
Discussion started by: oyesiji
3 Replies

2. UNIX for Dummies Questions & Answers

chmod

Hi I tried to use chmod in unix to change my file's permission. chmod 701 hello.cgi And it did change my desired file's permission. Yet, the name of the file is changed to hello.cgi* . And therefore I cannot compile it after that. So, I just wondering why there is an extra '*' in the file's... (2 Replies)
Discussion started by: alvin8906
2 Replies

3. UNIX and Linux Applications

What is the difference between chmod in solaris and chmod in Linux?

i think it is the same in both... Iam i right? (1 Reply)
Discussion started by: sumaiya
1 Replies

4. UNIX for Advanced & Expert Users

chmod question

I have two files,like follows: $ls -l foo bar -rw------- bar -rw-rw-rw- foo Then I execute follow code: chmod("foo",(statbuf.st_mode & ~S_IXGRP) | S_ISGID) chmod("bar",S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) Then I view the result $ls -l foo bar -rw-r--r-- bar... (1 Reply)
Discussion started by: konvalo
1 Replies

5. UNIX for Dummies Questions & Answers

CHMOD Question

I've always been fascinated by permissions and I have a question. Since the shell isn't a "virtual environment" (like say a web forum, where permissions can be enforced with absolute confidence), what's actually keeping an unauthorized user from viewing a CHMODed file? The read/write routines? Why... (1 Reply)
Discussion started by: froth
1 Replies

6. UNIX for Dummies Questions & Answers

chmod...

Hey everyone, I was wondering if there was a quicker way to chmod a lot of files than doing what im currently doing. At the moment, im doing chmod 777 *filename* - but I have a lot of files, sub-directories, sub-files etc etc. And at the moment I see I have to chmod every single file... (3 Replies)
Discussion started by: mo0ness
3 Replies

7. UNIX for Dummies Questions & Answers

Chmod 000

Hello, If I am an user on a Solaris 9 system and if I do Chmod 000 on the folder corresponding to my workspace... What will happened??? (1 Reply)
Discussion started by: Erythro73
1 Replies

8. UNIX for Dummies Questions & Answers

chmod

Hi, can anybody help me? i have probable a simple problem about permissions. i have a server and on this server there comes some files from a another server via ftp with a separte user. i would like to modify the files with a awk script but i donīt have the permissions to modify the... (3 Replies)
Discussion started by: scotty
3 Replies

9. UNIX for Dummies Questions & Answers

Chmod Help!

Here is the deal, I am good with html and java and am creating a website for my brother. On this site he has chosen to use a ikonboard.com discussion board. I have done everything I can to pull it off, but no can do. Here is the problem: The site is being created using the angelfire... (12 Replies)
Discussion started by: xwfprez
12 Replies

10. UNIX for Dummies Questions & Answers

CHMOD Help!!

Ok, listen.........I was using FTP Works to remove and add some files to a domain server. I messed with chmod button and made it so that no-one could access or their browsers could execute files and 2 or three certain directories. If anyone knows how to use this command and will give me a heads up... (2 Replies)
Discussion started by: jarrell
2 Replies
Login or Register to Ask a Question