Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to set default permission Post 302670085 by uglycustoomer on Wednesday 11th of July 2012 03:02:43 PM
Old 07-11-2012
hah, i was wondering that myself.

I think changing the umask permission on OSX would really boggle things up.

I wish i was more familiar with unix.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

set up cron permission in Sun

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. AIX

set permission to files in /tmp

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

3. UNIX for Dummies Questions & Answers

Change permission for a set of files

Hi there, I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix. Can someone help me to go-about doing this in one shot. Cheers, RN (2 Replies)
Discussion started by: karthickrn
2 Replies

4. Shell Programming and Scripting

Is possible to use umask to set file permission as 775?

Hi, all! Is it possible to use umask and to set the file permission level as 775? I know I can add chmod into my scripts but I just want to explore the umask option. Thanks! (1 Reply)
Discussion started by: visio2000
1 Replies

5. Shell Programming and Scripting

set permission on file to 777

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

6. UNIX for Advanced & Expert Users

How to set default file system permission?

Default file system currently is 664. I would like to get it as 774. As other users of the same group was not able execute the file created any any user. chmod cannot be used in my case. (Files are created and executed the programs owned by different vendors) we know that umask is not going... (3 Replies)
Discussion started by: deepakwins
3 Replies

7. Shell Programming and Scripting

set only some command & scripts permission to a particular user

hi, i am new in unix.......i am using bash and i want to create a user which has only some command and scripts permission.........is it possible? thanx (1 Reply)
Discussion started by: rakeshtomar82
1 Replies

8. Shell Programming and Scripting

Help to set permission on password files in script

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. UNIX for Dummies Questions & Answers

Write (save time) Permission set

When am saving a file using my username in Linux environment, the file permission granted is rw-r--r-- I have to manually change the permissions using chmod command. How do i write it to the disk as rw-rw-r while saving my file. (6 Replies)
Discussion started by: Avishek_rc1
6 Replies

10. Solaris

How to set multiple ownership permission on a file/directory?

Hi, Any ideas to set multiple ownership permission on a file/directory on Solaris? I need a folder to have multiple ownership on the 2 nodes servers. The 2 nodes servers require to mount a SMBFS with different user ID. Please assist. Thanks. (6 Replies)
Discussion started by: freshmeat
6 Replies
acl_add_perm(3) 					     Library Functions Manual						   acl_add_perm(3)

NAME
acl_add_perm - Adds a permission to a set of permissions belonging to an ACL entry LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_add_perm( acl_permset_t permset_d, acl_perm_t perm_d); PARAMETERS
Specifies the permissions set of the working storage internal representation of an ACL entry. Specifies the permission to be added to the permission set (a combination of ACL_EXECUTE, ACL_WRITE, and ACL_READ). DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_add_perm() function adds the permission specified by perm_d to the permission set referred to by the permset_d parameter. Any per- missions not designated in the perm_d parameter are left unchanged in the ACL entry. An attempt to add a permission already in the permis- sion set is not treated as an error. RETURN VALUES
Upon successful completion, the acl_add_perm() function returns a value of 0 (zero). Otherwise a value of -1 is returned, and errno is set. ERRORS
If any of the following conditions occur, the acl_add_perm() function sets errno to the corresponding value: The perm_d parameter does not contain a valid acl_perm_t value The permset_d parameter does not contain valid file permission bits. RELATED INFORMATION
acl_clear_perm(3),acl_delete_perm(3), acl_get_permset(3), acl_set_permset(3),acl_get_entry(3) Security delim off acl_add_perm(3)
All times are GMT -4. The time now is 06:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy