LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-02-2004, 07:44 PM   #1
infected
Member
 
Registered: Jun 2003
Location: Iowa
Distribution: undecided
Posts: 30

Rep: Reputation: 15
want to share local hard disk with all users


I want to share hdb1 which is mounted at /storage with all the users, ie read and write data as well. right now these are the permissions:
drwxr-xr-x 9 root root 16384 Dec 31 1969 storage

I can only read right now and i cannot change the permissions of the folder even as root, how do i share this drive with all the users?
 
Old 09-02-2004, 08:01 PM   #2
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
You need to set the 'other' to read and write.

Theres two options.

1) Allow every user to read/write/remove, they can remove any file, even if they did not make it. You do this just by setting other read and write flags like:
chmod -R o+rwx /storage

2) Allow every user to read/write, no one but the superuser (or a member of a group that is giving remove privileges) can remove files, you do this with t. Like:

chmod -R o+rwt /storage

Notice we changed x with a t, t is the sticky bit which stops file removal.

Hope that helps,
Andrew
 
Old 09-02-2004, 08:24 PM   #3
infected
Member
 
Registered: Jun 2003
Location: Iowa
Distribution: undecided
Posts: 30

Original Poster
Rep: Reputation: 15
Re: want to share local hard disk with all users

Quote:
Originally posted by NLR
You need to set the 'other' to read and write.

Theres two options.

1) Allow every user to read/write/remove, they can remove any file, even if they did not make it. You do this just by setting other read and write flags like:
chmod -R o+rwx /storage

2) Allow every user to read/write, no one but the superuser (or a member of a group that is giving remove privileges) can remove files, you do this with t. Like:

chmod -R o+rwt /storage

Notice we changed x with a t, t is the sticky bit which stops file removal.

Hope that helps,
Andrew
I have tired this, i don't have permission to do this even as root. I get an Operation not permitted, i think this has to do with the fact that it is mounted hard disk.

$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 4.9G 3.0G 2.0G 61% /
tmpfs 507M 4.0K 507M 1% /dev/shm
/dev/hda7 4.0G 37M 4.0G 1% /home
/dev/hdb1 149G 36G 114G 24% /storage
/dev/hda1 9.4G 7.6G 1.8G 82% /mnt/winxp

Last edited by infected; 09-02-2004 at 08:25 PM.
 
Old 09-02-2004, 08:48 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Umount the disk before changing permissions on the mount point.
Also, make sure it's being mounted with read/write permission for users.
 
Old 09-02-2004, 09:12 PM   #5
NLR
Member
 
Registered: Jun 2004
Posts: 103

Rep: Reputation: 15
Im sorry, forgot to tell you to umount it first... and mount rw.


Andrew
 
Old 09-02-2004, 09:37 PM   #6
infected
Member
 
Registered: Jun 2003
Location: Iowa
Distribution: undecided
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mikshaw
Umount the disk before changing permissions on the mount point.
Also, make sure it's being mounted with read/write permission for users.
it worked! i had to add umask=000 in fstab and it did the trick. Thanks guys.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
how to authenticate external users but bypass prompt on local LAN users? taiwf Linux - Security 5 07-13-2005 09:01 AM
how 2 access a ext3 fs from windows on a local hard disk mukeshj Linux - General 2 07-09-2005 02:08 AM
install suse 9 from local hard disk demmylls Linux - General 3 01-15-2004 05:47 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM


All times are GMT -5. The time now is 09:07 PM.

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