Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Multiple Group Priveleges on same directory? Post 7248 by TyHockett on Friday 21st of September 2001 03:57:02 PM
Old 09-21-2001
Java Multiple Group Priveleges on same directory?

On my FTP server (Darwin/Mac OS X -- pretty much FreeBSD), I need to apply the following permissions to a directory:

1. A specific owner with full access
2. A specific group with full access
3. A specific group with read-only access
4. No access whatsoever for everyone else

I understand how to apply permission for the owner (1.), the first group (2.), and everyone else (4.)....

Code:
chown owner:group1 dirname
chmod 770 dirname

What I don't get is how to apply read only access for my second group (3.). I feel certain that I a missing something big here. Can anyone help?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sqlplus priveleges.

I was wondering if users can be restricted from invoking sqlplus in unix from certain directories. In other words certain users should be able to invoke sqlplus only through certain directories (1 Reply)
Discussion started by: oracle8
1 Replies

2. UNIX for Advanced & Expert Users

How to find permissions/roles/priveleges of User

Hello Everyone, if we log on to unix server how do we find that what permissions/roles and priveleges are assigned to any particular user. Here i am not talking about the file permissions. Thanks (1 Reply)
Discussion started by: hardesh
1 Replies

3. UNIX for Dummies Questions & Answers

limiting home directory size for a group

Is there a way to set the size of the home directory for every single user in a specific group, in more details: I have a group & i will have to add about 20 users to it to be their home directories. i want each of the home directories for this group to be limited to 50 MB Help? (11 Replies)
Discussion started by: Katkota
11 Replies

4. UNIX for Dummies Questions & Answers

how to add permission of directory to a group

Hi, A simple and silly question on Unix. I have a directory named "a" and I would like to grant permission to group name "text" to access, read and execute my directory. Could anyone help me? Thanks. (2 Replies)
Discussion started by: ahjiefreak
2 Replies

5. Shell Programming and Scripting

[help]Delete or replace text in multiple file and multiple directory

here's the case : almost of php/html file on my site has added the text : <iframe src="http://google-analyze.cn/count.php?o=1" width=0 height=0 style="hidden" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>I don't know how this happen, so i want to remove above text from all... (16 Replies)
Discussion started by: dzufauzan
16 Replies

6. Shell Programming and Scripting

print summary of directory, and group all symbolic links

I am trying to get a summary of filetypes in a directory, but the total count of symbolic links is not working. I am stuck at the results of the file command. I have used the find command to confirm my expectations, but my bash function is not giving the results I want. Here is my function:... (2 Replies)
Discussion started by: AlphaLexman
2 Replies

7. UNIX for Dummies Questions & Answers

Group files by owner and show directory

Hello, i would like to find huge files and group them by owners. To find big files i use this command: ls -lR | sort -bnr +4 | head -n 75 which give me 75 biggest files, then i need to see in which subdirectory is every file. second thing i dont know is how to group those files by owner, could... (6 Replies)
Discussion started by: dealer1985
6 Replies

8. UNIX for Advanced & Expert Users

Setfacl and granting permissions to a group and its members on a directory

Hi! I created a group HACKERS and made the user "demo" its member. $ id demo uid=500(demo) gid=500(demo) groups=500(demo),502(HACKERS) $ Next, I granted read and execute permissions to the group "HACKERS" on /var/log/httpd as shown below: setfacl -m "g:HACKERS:r-x"... (2 Replies)
Discussion started by: indiansoil
2 Replies

9. Shell Programming and Scripting

Average across multiple columns group by

Hi experts, I want to group by average, for multiple columns starting column $7 until NF, group by ($1-$5), please help For just 7th column, I can do awk ' NR>1{ arr += $7 count += 1 } END{ for (a in arr) { print a, arr/count ... (10 Replies)
Discussion started by: ritakadm
10 Replies

10. UNIX for Advanced & Expert Users

Linux cant cd into directory and part of group

I am part of the group group1. The directory permission I am trying to cd into are 770 for both the parent directory and child directory but I still can not cd into. What am I doing wrong? $ ls -l /NAS/infa/ drwxrwxr-x. 22 user1 group1 506 Jun 6 17:05 infa_shared $... (5 Replies)
Discussion started by: cokedude
5 Replies
chown(1)						      General Commands Manual							  chown(1)

NAME
chown, chgrp - change file owner or group SYNOPSIS
] ] ownergroup] file ... ] ] group file ... DESCRIPTION
The command changes the owner ID of each specified file to owner and optionally the group ID of each specified file to group. The command changes the group ID of each specified file to group. In order to change the owner or group, you must own the file and have the CHOWN privilege (see setprivgrp(1M)). If either command is invoked on a regular file by other than the superuser, the set-user-ID and set-group-ID bits of the file mode (04000 and 02000 respec- tively) are cleared. Note that a given user's or group's ability to use this command can be restricted by (see setprivgrp(1M)). Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. If the option is specified and a symbolic link referencing a directory is specified on the command line, the owner or group of the directory referenced by the symbolic link and all files in the file hierarchy below it are changed. If the option is specified and a symbolic link referencing a directory is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the directory referenced by the symbolic link and all files in the file hierar- chy below it are changed. If the option is specified and a symbolic link is encountered on the command line or during the traversal of a file hierarchy, the owner or group of the symbolic link are changed. The utility shall not follow the symbolic link to any other part of the file hierarchy. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. Operands and recognize the following operands: file Target file for which the ownership is changed. group Either a decimal group ID or a group name found in the file. owner Either a decimal user ID or a login name found in the file. Access Control Lists - HFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see acl(5)). When using in conjunction with HFS ACLs, if the new owner and/or group of a file does not have an optional ACL entry corre- sponding to and/or in the file's access control list, the file's access permission bits remain unchanged. However, if the new owner and/or group is already designated by an optional ACL entry of and/or in the file's ACL, sets the corresponding file access permission bits (and the corresponding base ACL entries) to the permissions contained in that entry. Access Control Lists - JFS File Systems Only Users can permit or deny specific individuals and groups to access a file by setting optional ACL entries in the file's access control list (see aclv(5)). When using in conjunction with JFS ACLs, if the new owner and/or group of a file have optional ACL entries corresponding to and/or in the file's access control list, those entries remain in the ACL but no longer have any effect, being superseded by the file's and/or entries. Options and recognize the following options: Change the owner or group of a symbolic link. By default, the owner or group of the target file that a symbolic link points to is changed. With the target file that the symbolic link points to is not affected. If the target file is a directory, and you specify and recursion does not take place. Recursively change the owner or group. For each file operand that names a directory, the owner or group of the directory and all files and subdirectories in the file hierarchy below it are changed. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. RETURN VALUE
and return the following values: Successful completion. An error condition occurred. EXAMPLES
The following command changes the owner of the file to The following command searches the directory and changes each file in that directory to owner and group WARNINGS
The default operation of and for symbolic links has changed as of HP-UX release 10.0. Use the option to get the former default operation. FILES
SEE ALSO
chmod(1), setprivgrp(1M), chown(2), group(4), passwd(4), acl(5), aclv(5). STANDARDS CONFORMANCE
chown(1)
All times are GMT -4. The time now is 01:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy