LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2008, 08:13 AM   #1
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Rep: Reputation: 15
Angry folder permissions


Hello

this question is in regards to a folder permissions and folder contents.

i am on fedora 8 and logged in as root, i want to change the permissions of a folder used by samba. I right click the folder then properties then permissions, i change the group to the group i want then click the apply to folder content, then close . when i enter the folder and check one of the files in the folder the group did not change. there are way too many files to change manually any idea on what i might be doing wrong?

Last edited by andy1974; 04-04-2008 at 08:14 AM. Reason: forgot spellcheck
 
Old 04-04-2008, 09:12 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I have no idea how you would do it through a GUI, but the command to change file/directory ownership is "chown", and the switch to make it recursive is -R. So you could do something like:

Code:
sudo chown -R root:users ./directory
Which would make the directory and all files/directories under it owned by the user "root" and belong to the group "users".
 
Old 04-04-2008, 09:13 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Have you tried doing it from commandline? What are you trying to change? Is it file(s) access permissions or file(s) ownership?

I strongly suggest you logout as root and use the method outlined by MS3FGX to apply your changes.

Last edited by {BBI}Nexus{BBI}; 04-04-2008 at 09:16 AM. Reason: Additional info added.
 
Old 04-04-2008, 09:58 AM   #4
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
good questions indeed. here is what i am wanting ...i have a folder /data
and in the /data folder are all my mp3s. the folder is a samba shared with 12 users. all 12 users are in user group called "players" i have the folder set for the group "players" to read write to the folder. so what i want is ,if user 1 in the group saves a mp3 in the folder, i want user 4 to be able to copy and paste the file user 1 saved there.

wow thats confusing
 
Old 04-04-2008, 10:16 AM   #5
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
What you need to use is chmod to define read/write permissions. Do: man chmod for an overview. See here: http://www.webmastertips.us/articles...ials/chmod.htm for practical use.
 
  


Reply



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
folder permissions sharathkv25 Linux - General 3 04-12-2007 12:39 PM
folder permissions lpn1160 Linux - General 4 10-29-2006 08:46 AM
Folder Permissions HeReigns Linux - Networking 5 03-08-2006 03:36 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
folder Permissions issinho Linux - Security 3 07-10-2005 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:26 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
Open Source Consulting | Domain Registration