LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2005, 08:28 PM   #1
pridefc
Member
 
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Rep: Reputation: 15
Folder permissons as in windows ntfs


Hello,

I'm pretty new to Linux.
In Windows, you can apply a security permissions(who can have access and what level of access) on the root folder and you can have the permissions to propagate to the subfolders/files.

1) How would I go about doing that in Linux?
I have this one folder that has about 5 subfolders and +100 files. I'd like to be able to apply the permission on the parent folder and have the subfolders/files inherit the permission.

2) -rw-r--r-- 1 root itgroup 35 Sep 26 09:38 hello.txt
Is there a way to assign multiple groups to a folder? In this case, root is the owner and itgroup is the group. How would I go about adding another group to this file?

Thanks in advance.
 
Old 12-26-2005, 08:45 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Study the commands chown, chmod, passwd, grep /etc/group, grep /etc/passwd. You can accomplish everything that you need with these five commands.
 
Old 12-27-2005, 12:47 AM   #3
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Man Linux is far far more secure than windows, you should only know the way to do it.

This is what you need:
chmod -r newpermission foldername

Btw., if you dont know what file permissions mean then this will surely help:
http://www.redhat.com/mirrors/LDP/HO...ty.html#AEN432
 
Old 12-27-2005, 06:10 PM   #4
pridefc
Member
 
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
But how do you make the permission to progagate to subfolders/files?
Suppose I did chmod 775 foldernameand I wanted all its subfolders/files to inherit the same permission.

In Windows if you want the changes you made to a directory's permissions to propagate all the way down through any subdirectories, you can click on the check box, Replace Permissions on Subdirectories> OK.

What is the command in Linux that's equivalent to that?
 
Old 12-28-2005, 12:04 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by pridefc
What is the command in Linux that's equivalent to that?
You use chmod with the -R flag, i.e.

$ chmod -R /some/directory
 
Old 12-28-2005, 06:09 AM   #6
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Thumbs down

Quote:
Originally Posted by nitinatindore
This is what you need:
chmod -r newpermission foldername
Quote:
Originally Posted by pridefc
But how do you make the permission to progagate to subfolders/files?
Man you are simply posting out stuff without even trying out what others are suggesting.I think "chmod -r" answered your question but then you posted it out again. Take your time reading out the solutions before reposting the same question again even when it has been answered.

Last edited by nitinatindore; 12-28-2005 at 06:12 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to copy a user folder from ntfs hd that is locked. bluedevlx Linux - Security 1 05-18-2005 02:28 PM
Changeing permissons jmanjeff Debian 3 04-01-2005 10:48 AM
xmms doesn't see mp3s in ntfs folder tgi Linux - Newbie 9 07-22-2004 04:04 AM
permissons rights tommytomato Linux - Newbie 2 02-02-2004 05:47 AM
Samba Permissons Greg K Linux - Networking 0 12-10-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration