How to set default permission


 
Thread Tools Search this Thread
# 1  
How to set default permission

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 under the path of /mnt/itstorage and used the command
chown -R root:ITLIC itstorage
chmod 777 itstorage

All the files and subfolders became open to everyone. The issue is that once a user creates a new file/folder, only they have access to those files and the others can not edit them.

I am not sure if a umask command needs to be ran on each user to set the default permission to read/write/execute.

If someone can point me in the right direction as to what file i need to manipulate and which code i need that would be of GREAT help.

I want everyone to have access to read/write/execute under any folder/file.

Looking forward to a response. Thanks!
# 2  
777 is not the magic sledgehammer to fix all permissions problems. It generally causes more problems than it solves by opening permissions far too wide, not to mention. It's also a way of avoiding the problem of figuring out the proper way to do it.

What permissions and owners did that folder used to be?

What permissions and ownerships do you get when a new user creates a folder?

Adding users to the correct groups, etc. may allow them to access the root folder, as well as folders they create.
# 3  
all the users are part of the group ITLIC. The ITLIC group is suppose to have full permissions.

when one of my other users creates a file/folder, I only have Read access.
# 4  
When they create folders, do they belong to the correct group, ITLIC? Or do they only belong to themselves?
# 5  
A umask of 007 would allow them to create writable folders as long as they're created for a group which all the users belong to. I have no idea how to put this into freenas however. The only places umask is mentioned for that is tftp and ftp...
# 6  
drwxr-sr-x 3 abaldor ITLIC 3 Jul 11 12:45 Testing Folder/

the user that created this file is abaldor and the group is listed correct. But it shows up as read only for others.
# 7  
umask would not appear to matter, here.

The group-sticky bit is set, therefore umask was not involved in its creation -- umask never sets the group-sticky bit. freeNAS imposed other permissions on it later.

Ergo this is is a freeNAS question and not a UNIX one.

FreeNAS lists 3 different kinds of shares. What kind are you using?
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #109
Difficulty: Easy
The Unix shell is the interface between the user and the kernel.
True or False?

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

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

Featured Tech Videos