LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-24-2009, 04:43 AM   #1
seemashaikh
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Shared Folder Permissions


I am pretty new to Linux. My client has a Linux(Centos) server. There is a folder which has been shared and users have created their own folders under this shared folder. Now if user B tries to change a file created by user A or tries to save the file under a different name it gives a permission issue. I use webmin to administer the server as I am completely new. I want any user to be able to read, write and delete files in any folder irrespective of who created it. Please help!
 
Old 06-24-2009, 04:50 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by seemashaikh View Post
I am pretty new to Linux. My client has a Linux(Centos) server. There is a folder which has been shared and users have created their own folders under this shared folder. Now if user B tries to change a file created by user A or tries to save the file under a different name it gives a permission issue. I use webmin to administer the server as I am completely new. I want any user to be able to read, write and delete files in any folder irrespective of who created it. Please help!
As root you can go to the folder in question and execute command:
Code:
chmod ugoa+rwx *
This command also allows anybody to execute any file in that folder. If that's not what you want then just remove the "x" from the command.
Cheers,
jdk
 
Old 06-24-2009, 05:37 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by jdkaye View Post
Code:
chmod ugoa+rwx *
This command also allows anybody to execute any file in that folder.
Please try to take into account OP clearly declares himself a novice (as using any webbased admin panel often indicates). That doesn't absolve him from getting required knowledge but not asking for the reasons why this is necessary and offering an uprotected glob is IMHO is not the right way to promote safe usage. using something like ACL might.


Quote:
Originally Posted by jdkaye View Post
If that's not what you want then just remove the "x" from the command.
Since directories aren't searchable for a user without xecute bit, I wonder what sense it makes then?
 
Old 06-24-2009, 05:42 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
Originally Posted by seemashaikh View Post
I am pretty new to Linux. My client has a Linux(Centos) server. There is a folder which has been shared and users have created their own folders under this shared folder. Now if user B tries to change a file created by user A or tries to save the file under a different name it gives a permission issue. I use webmin to administer the server as I am completely new. I want any user to be able to read, write and delete files in any folder irrespective of who created it. Please help!
I would request you give a strong reason behind this. It is really not safe to allow everyone full control of folders they do not own. Privacy is also something you need to respect in this regard.
It is not a very wise decision to allow full control to everyone. Someone might just with fun loving attitude delete the files and never tell he/she did it. And that you do not have much experience with Linux it would be difficult to trace the things in future.

Ok I need to type much faster than I do. I will have to learn it. unspawn has already taken the same points.

Last edited by linuxlover.chaitanya; 06-24-2009 at 05:44 AM.
 
Old 06-24-2009, 06:48 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Please try to take into account OP clearly declares himself a novice (as using any webbased admin panel often indicates). That doesn't absolve him from getting required knowledge but not asking for the reasons why this is necessary and offering an uprotected glob is IMHO is not the right way to promote safe usage. using something like ACL might.



Since directories aren't searchable for a user without xecute bit, I wonder what sense it makes then?
Sorry about that. You're quite right of course. My impression was that the OP was only talking about files in the users' home directories and that sensitive areas that could affect the functioning of the system.

I meant remove the x in the command (use chmod ugoa+rw *) in the first instance if it was deemed inappropriate.
cheers,
jdk
 
Old 06-24-2009, 07:52 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
A lot of questions after all are one-dimensional and require few words. But in some cases users may have read about just one "solution" and won't ask for other ways. Asking for clarification will not only help you help the OP (by being able to formulate a suitable answer) but also help the OP (and anyone reading the thread long after) see that GNU/Linux is versatile in more than one way. No need to apologise.
 
Old 06-28-2009, 03:42 AM   #7
seemashaikh
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
A lot of questions after all are one-dimensional and require few words. But in some cases users may have read about just one "solution" and won't ask for other ways. Asking for clarification will not only help you help the OP (by being able to formulate a suitable answer) but also help the OP (and anyone reading the thread long after) see that GNU/Linux is versatile in more than one way. No need to apologise.
Giving permissions to all users on all folders is a client requirement. How do I execute the command in Webmin?? Sorry but i did say i am a noob
 
  


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
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Shared folder permissions cvzyl Linux - Software 1 07-30-2006 09:43 AM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Samba Public shared Folder will not hold permissions xzerros Linux - Networking 12 09-26-2005 09:25 AM
shared folder permissions for SFTP jawilson Linux - Networking 1 07-07-2005 02:42 PM

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

All times are GMT -5. The time now is 08:20 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