Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> "Shared" folder between user on same machine
post May 26 2006, 05:17 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 26-May 06
Member No.: 6,435

How do I go about creating a directory so that anything inside of it (including new directorys) retain the permission of the originial directory?
Go to the top of the page
+Quote Post
post May 27 2006, 08:34 PM
Post #2

RMS is my Hero

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404

/etc/profile has a 'umask' line. Changing this will decide what permissions a newly created file has.

777 - umask = permission

So a umask of 000 = 777, 022 = 755, etc.

Keep in mind, however, that if a user cannot 'execute' a directory, nor read it, they cannot access any file in the directory.

In your case, you'd want umask 007 (for these users, atleast. You can add this umask line to their .bash_profile)

If you have several users that need to 'share' a folder, just add them to a group (man groupadd) and set the group of the folder.

chgrp -R groupname foldername

Best of luck

*Points finger at the author above him* They're a witch! Burn them!
Vist my website!
Join me in IRC! Server: Channel: #UnhandledExceptions
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 22nd July 2018 - 09:28 PM