LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-20-2009, 09:22 AM   #1
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Changing directory default creation mask for specific folder - NOT samba.


Hi!

I dont know if this is a dumb question, I really cant remember anyway for solving this, maybe you can give me a help on this..


I have a linux system used as Terminal Server, so I created a folder called Share where inside users home folder there are a link to it. This folder has the group Users who is the same group that all users make part of. They are having no problem to create files and folders inside it, but the files/folders created are getting 644/755 permissions what is a problem for the other users who try to edit these files.
I know there is a way for changing default folder creation mask in /etc/profile, but I wanted something more specific just for this folder (/home/Share), its even better if I could set an specific User, Group and Mask for files/folders created inside it...

Well, I will continue googling for answers on this, but if anyone have the answer for this, it will be appreciated very well.

Thanks
best regards [ ]'s

PS: Just like its commented in title, this isn't any kind of Samba share, its just a simple shared folder inside /home.

Last edited by maginotjr; 01-20-2009 at 11:08 AM.
 
Old 01-20-2009, 02:58 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
Quote:
Originally Posted by maginotjr View Post
Hi!

I dont know if this is a dumb question, I really cant remember anyway for solving this, maybe you can give me a help on this..


I have a linux system used as Terminal Server, so I created a folder called Share where inside users home folder there are a link to it. This folder has the group Users who is the same group that all users make part of. They are having no problem to create files and folders inside it, but the files/folders created are getting 644/755 permissions what is a problem for the other users who try to edit these files.
I know there is a way for changing default folder creation mask in /etc/profile, but I wanted something more specific just for this folder (/home/Share), its even better if I could set an specific User, Group and Mask for files/folders created inside it...

Well, I will continue googling for answers on this, but if anyone have the answer for this, it will be appreciated very well.

Thanks
best regards [ ]'s

PS: Just like its commented in title, this isn't any kind of Samba share, its just a simple shared folder inside /home.
have you tried changing the umask of the folder yet? Set the umask to something like 002 I think would give it 775. But I think on some systems it won't give you execute. You have to supply that manually.
 
Old 01-21-2009, 06:29 AM   #3
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 34
HEY! Thanks!

How could I forget the umask command!?
...
so it was a dumb question in th end lol

...and yeah, it wont give exec permission for files, only for directories, but this isn't necessary anyway.

thanks again,
best regards! [] 's
 
Old 01-21-2009, 09:36 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043

Rep: Reputation: 83
Quote:
Originally Posted by maginotjr View Post
HEY! Thanks!

How could I forget the umask command!?
...
so it was a dumb question in th end lol

...and yeah, it wont give exec permission for files, only for directories, but this isn't necessary anyway.

thanks again,
best regards! [] 's
Good deal. Glad to hear and I would not consider this a dumb question. I forget the most useful tools all the time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying default permissions for newly created files within a specific folder mattydee Linux - Desktop 28 06-01-2011 02:58 PM
Changing default user creation BEBigBear Linux - Desktop 3 06-24-2007 03:39 PM
Changing programs default .folder jagwah Linux - Software 2 06-20-2006 12:08 AM
script for changing a specific string in a directory irfanhab Programming 5 06-28-2005 01:27 PM
Changing Evolution's default folder... Zigor Linux - Newbie 3 07-16-2004 10:31 AM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration