06-29-2009
This command will change the permission for all specified files but I want to find files with this permission -r-xr-xr-x and change it to -r-xr-xr-- for a group of files
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Under this directory:
/var/spool/cron/crontabs/
I have the following users:
adm lp oracle root sys uucp
I believe who are able to start a cron job.
I am trying to create a cronjob under user banjob so that it can delete files older than 30 days.
How can I add user banjob... (4 Replies)
Discussion started by: simt
4 Replies
2. Shell Programming and Scripting
Is there a way to change subdirectories permission plus the files in the subdirectories in a directory i specified without using the find command? (1 Reply)
Discussion started by: mingfei2006
1 Replies
3. Shell Programming and Scripting
I would like to change permissions recursively on a remote folder.
Seems like sftp has a limitation, I am only able to change permission on a individual file..
sftp > chmod 777 /usr/local/apache/docs/test.txt
It would be great if someone has more knowledge on how this is doable recursively? (1 Reply)
Discussion started by: almeisan1
1 Replies
4. AIX
Trying to setup user to have the ability to delete any files (regardless of owner) in /tmp.
I've tried almost everything... the permission on the folder is drwxrwxrwt 10 bin bin, and at one point I give all the possible permission (short of root) I can give to the user, and he still can't delete... (2 Replies)
Discussion started by: cchiang12
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I was trying to copy/transfer some new and old files from one server to another server. I found the permission of the files are different in both servers. I tried to tar all the files and then send to the other server, and then also the permission level is different after copying the files.... (4 Replies)
Discussion started by: ronix007
4 Replies
6. Shell Programming and Scripting
Here is the sample code I'm trying to execute. I see that the permission on the file is set to 755 always I want to change it to 777. Please help me with this.
code :
#!/usr/bin/perl
use File::Path qw(make_path remove_tree);
my $path = "2010/sam";
make_path($path,{mode=>0777});
... (1 Reply)
Discussion started by: hansini
1 Replies
7. UNIX for Dummies Questions & Answers
Hey Guys,
First post here. I just started learning UNIX a few weeks ago.
My issue: I use FreeNAS which is based off of UNIX in my network environment which hosts files that my team needs to access. Each user has their own login but we are all part of a group called "ITLIC".
I have a share... (15 Replies)
Discussion started by: uglycustoomer
15 Replies
8. Shell Programming and Scripting
Hi Techies
I am stuck in a problem, I have written a script which is calling a second script which contains some command and password for quering on database. I do not want to disclose this command or specially password file. Please help..
Please have a look on directory structure and... (2 Replies)
Discussion started by: atul9806
2 Replies
9. HP-UX
Hi All
I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file
Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies
10. AIX
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
LEARN ABOUT FREEBSD
acl_add_perm
ACL_ADD_PERM(3) BSD Library Functions Manual ACL_ADD_PERM(3)
NAME
acl_add_perm -- add permissions to a permission set
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_add_perm(acl_permset_t permset_d, acl_perm_t perm);
DESCRIPTION
The acl_add_perm() function is a POSIX.1e call that adds the permission contained in perm to the permission set permset_d.
Note: it is not considered an error to attempt to add permissions that already exist in the permission set.
For POSIX.1e ACLs, valid values are:
ACL_EXECUTE Execute permission
ACL_WRITE Write permission
ACL_READ Read permission
For NFSv4 ACLs, valid values are:
ACL_READ_DATA Read permission
ACL_LIST_DIRECTORY Same as ACL_READ_DATA
ACL_WRITE_DATA Write permission, or permission to create files
ACL_ADD_FILE Same as ACL_READ_DATA
ACL_APPEND_DATA Permission to create directories. Ignored for files
ACL_ADD_SUBDIRECTORY Same as ACL_APPEND_DATA
ACL_READ_NAMED_ATTRS Ignored
ACL_WRITE_NAMED_ATTRS Ignored
ACL_EXECUTE Execute permission
ACL_DELETE_CHILD Permission to delete files and subdirectories
ACL_READ_ATTRIBUTES Permission to read basic attributes
ACL_WRITE_ATTRIBUTES Permission to change basic attributes
ACL_DELETE Permission to delete the object this ACL is placed on
ACL_READ_ACL Permission to read ACL
ACL_WRITE_ACL Permission to change the ACL and file mode
ACL_SYNCHRONIZE Ignored
Calling acl_add_perm() with perm equal to ACL_WRITE or ACL_READ brands the ACL as POSIX. Calling it with ACL_READ_DATA, ACL_LIST_DIRECTORY,
ACL_WRITE_DATA, ACL_ADD_FILE, ACL_APPEND_DATA, ACL_ADD_SUBDIRECTORY, ACL_READ_NAMED_ATTRS, ACL_WRITE_NAMED_ATTRS, ACL_DELETE_CHILD,
ACL_READ_ATTRIBUTES, ACL_WRITE_ATTRIBUTES, ACL_DELETE, ACL_READ_ACL, ACL_WRITE_ACL or ACL_SYNCHRONIZE brands the ACL as NFSv4.
RETURN VALUES
The acl_add_perm() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to
indicate the error.
ERRORS
The acl_add_perm() function fails if:
[EINVAL] Argument permset_d is not a valid descriptor for a permission set within an ACL entry. Argument perm does not contain a
valid acl_perm_t value. ACL is already branded differently.
SEE ALSO
acl(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_brand_np(3), acl_get_permset(3), acl_set_permset(3), posix1e(3)
STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
HISTORY
POSIX.1e support was introduced in FreeBSD 4.0. The acl_add_perm() function was added in FreeBSD 5.0.
AUTHORS
The acl_add_perm() function was written by Chris D. Faulhaber <jedgar@fxp.org>.
BSD
June 25, 2009 BSD