LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-25-2009, 01:38 AM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Rep: Reputation: 16
problem chainging permission to file


guys, I have a partition on my main drive that I use for storage of docs, which I created under root, and I mount under /media/storage but now I'm trying to give another user rwx permision with

Code:
sudo chmod -R o+rwx /media/storage
but when I do
Code:
ls -l /media/storage
is still reflecting the old permission is like I'm not actually modifying anything and I'm not getting any errors

Thanks
 
Old 07-25-2009, 07:27 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 mia_tech View Post
guys, I have a partition on my main drive that I use for storage of docs, which I created under root, and I mount under /media/storage but now I'm trying to give another user rwx permision with

Code:
sudo chmod -R o+rwx /media/storage
but when I do
Code:
ls -l /media/storage
is still reflecting the old permission is like I'm not actually modifying anything and I'm not getting any errors

Thanks
can you show us what the results are of
Code:
ls -l /media/storage
and
Code:
ls -l /media
cheers,
jdk
 
Old 07-25-2009, 09:39 AM   #3
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Original Poster
Rep: Reputation: 16
I got it fixed now, but my question is: if I wanted to give rwx permission to another user other than the owner of that file... is
Code:
sudo chmod o+rwx /file/file
the only alternative, because that gives rwx to all users
 
Old 07-25-2009, 09:50 AM   #4
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 mia_tech View Post
I got it fixed now, but my question is: if I wanted to give rwx permission to another user other than the owner of that file... is
Code:
sudo chmod o+rwx /file/file
the only alternative, because that gives rwx to all users
No, if the other user is in the same group as the owner then
Code:
chmod ug+rwx {file/folder name}
will do the job.
cheers,
jdk

Last edited by jdkaye; 07-25-2009 at 09:52 AM.
 
Old 07-28-2009, 04:11 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can use ACLs to give finer controls to permissions. See the man pages for setfacl and getfacl.
You would need to give the user rx permissions on the directory for that user to be able to access a file inside.
 
  


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
Permintly chainging the hosts file in linux Bobby21 Linux - Newbie 2 04-15-2009 04:47 PM
Chainging the PATH on login shells cliff76 Debian 5 06-16-2005 03:52 PM
file permission problem unleashed Linux - Security 9 04-20-2005 04:22 PM
File Permission Problem Scythe Slackware 1 01-12-2004 11:37 PM
File permission problem nuttyvishal4u Linux - General 1 08-21-2003 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:27 AM.

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