|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#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! |
| Sponsored Links | ||
|
|
#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. |
| Sponsored Links | ||
|
|
#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?
|
| Sponsored Links | |
|
|
#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...
|
| Sponsored Links | |
|
|
#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. |
| Sponsored Links | |
|
|
#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? |
| Sponsored Links | ||
|
![]() |
| Tags |
| default permission, permission, permissions, umask |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| customizing default file permission | pandeesh | UNIX for Dummies Questions & Answers | 2 | 01-15-2012 03:44 PM |
| How to set default file system permission? | deepakwins | UNIX for Advanced & Expert Users | 3 | 04-15-2011 04:09 AM |
| How to change the default permission of a file | reachsamir | UNIX for Dummies Questions & Answers | 2 | 08-28-2007 05:57 PM |
| Permission 711---RWX---X---X | bobo | UNIX for Dummies Questions & Answers | 6 | 03-29-2006 10:50 AM |
| default permission of /var/tmp in AIX | dangral | UNIX for Dummies Questions & Answers | 3 | 07-18-2005 10:56 AM |
|
|