12-08-2000
Hi all,
I've just been handled the responsibility for a FTP-site. Having no experiens of UNIX at all. And now one of my users needs to have full access to the usr directory and all it's subdirectories, don't know why just trying to do what the boss tells me. The type of UNIX is FreeBSD and the filesystem's ufs. I've been told that with this setup rights can only be given to files and not directories. You can put a user in a group and give access to the file. But a file can only belong to one group. If I've understood this correctly it means that the options are 1. let the user log in as root 2. let him be an ordinary user. Option number 1 is not the one I want to go with.
But then the problem might be solved with ACL's? How can I see what ACL's I've got (if any)? How do I use them?
Thanking you
8 More Discussions You Might Find Interesting
1. AIX
Hi,
I want to know how to set acl in aix via smitty and shell prompt, wheather we needs to install additional packages. (0 Replies)
Discussion started by: manoj.solaris
0 Replies
2. Shell Programming and Scripting
Hi,
I generated a script that will create the list of dir/sub-dir and will allow to create the same on diff server. this is what i have done :
#!/bin/ksh
# Script to migrate the directory between the two servers.
# Ver 0.1
# Author Krishna. D
# c - create and e - extract directory
if ;... (1 Reply)
Discussion started by: krishnadvn
1 Replies
3. Linux
Hi, I want to know what does the "effective" comment means in the output of the getfacl and whether it has to do with the acl mask...
thanks (0 Replies)
Discussion started by: Gartlar
0 Replies
4. Solaris
Can i get the synopsis for add multiple users in single command for ACL access for a directory or a file
thanks in advance
dinu (3 Replies)
Discussion started by: dinu
3 Replies
5. HP-UX
Hello,
I try to find what year HP-UX got support for ACL (Access Control List)? I know that HP-UX was the first Unix with ACL support, but it is very hard to find the information on when that occured.
So anyone here know when that did happen?
Any answers are appreciated,
/eXpander (1 Reply)
Discussion started by: eXpander
1 Replies
6. UNIX for Advanced & Expert Users
Hi Friends,
I went through the ACL threads that were posted in the past but none were matching to my requirement . Hence starting a new thread .
Challenge :
user : a
group : Test1
user: b
group: Test2
Say under user a i create dir /tmp/debug with the privilege of 755 and also... (3 Replies)
Discussion started by: leobreaker
3 Replies
7. UNIX for Dummies Questions & Answers
Hi..
Could someone explain about setfacl,getfacl in unix and its uses.
Regards,
Suresh (1 Reply)
Discussion started by: suresh sunkara
1 Replies
8. UNIX for Advanced & Expert Users
All,
I am trying to clear ACL's completely from all files and folders in a directory. I can get the directories as cleared as:
# owner: root
# group: root
user::rwx
group::r-x
other::rwx
default:user::rwx
default:group::r-x
default:other::r-x
What ever I do I can't remove the... (4 Replies)
Discussion started by: hburnswell
4 Replies
LEARN ABOUT DEBIAN
lfc-getacl
LFC-GETACL(1) LFC User Commands LFC-GETACL(1)
NAME
lfc-getacl - get LFC directory/file access control lists
SYNOPSIS
lfc-getacl [-a] [-d] path...
DESCRIPTION
lfc-getacl gets the Access Control List associated with a LFC directory/file. For each path, it displays the file name, owner, the group,
and the Access Control List (ACL) if present. If a directory has a default ACL, lfc-getacl also displays the default ACL. Regular files
cannot have default ACLs.
The output looks like:
# file: filename
# owner: username
# group: groupname
user::perm
user:uid:perm
group::perm
group:gid:perm
mask:perm
other:perm
default:user::perm
default:user:uid:perm
default:group::perm
default:group:gid:perm
default:mask:perm
default:other:perm
The first "user" entry gives the permissions granted to the owner of the file. The following "user" entries show the permissions granted
to specific users, they are sorted in ascending order of uid. The first "group" entry gives the permissions granted to the group owner of
the file. The following "group" entries show the permissions granted to specific groups, they are sorted in ascending order of gid. The
"mask" entry is the maximum permission granted to specific users or groups. It does not affect the "owner" and "other" permissions. The
"mask" entry must be present if there are specific "user" or "group" entries. "default" entries associated with a directory are inherited
as access ACL by the files or sub-directories created in that directory. The umask is not used. Sub-directories also inherit the default
ACL as default ACL. As soon as there is one default ACL entry, the 3 default ACL base entries (default user, default group, default other)
must be present.
The entry processing conforms to the Posix 1003.1e draft standard 17.
path specifies the LFC pathname. If path does not start with /, it is prefixed by the content of the LFC_HOME environment variable.
uid is displayed as the username if known else as the numeric id.
gid is displayed as the groupname if known else as the numeric id.
perm is expressed as a combination of characters rwx-
OPTIONS
-a only display the access ACL.
-d only display the default ACL.
EXAMPLES
lfc-getacl /grid/atlas/test/file.log/d2
# file: /grid/atlas/test/file.log/d2
# owner: baud
# group: c3
user::rwx
group::r-x #effective:r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::r-x
EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed.
SEE ALSO
Castor_limits(4), lfc_chmod(3), lfc_chown(3)
AUTHOR
LCG Grid Deployment Team
LFC
$Date: 2005/03/02 08:32:12 $ LFC-GETACL(1)