LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 10-23-2003, 11:52 PM   #1
griphiam
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
chmod persistance? (and fstab help)


So, I finially figured out how to get write permissions on my 2nd harddrive... I had to chmod the mount point (eg. chmod go+rwx /usr/pictures ), and that works.

However, after a restart, those chmod properties are undone and reverted back to their previous form, so I have to chmod them every time I want to write to the drive. Is there something I'm missing here? It doesn't sound like this is supposed to happen. Pasted below is my fstab if you need it for reference.

And how does noauto work? If the root mounts the filesystem, does only root have write access to that drive? So the only way the user gets write access if he has permission to mount the drive and he does it manually? Is there anything that I should add to my fstab that would be beneficial?

Thanks for any help!

/dev/hde1 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hde6 /home ext3 noatime 1 2
none /mnt/cdrom supermount dev=/dev/hda,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/cdrom2 supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,sync,umask=0,iocharset=iso8859-1 0 0
none /proc proc defaults 0 0
/dev/hdg7 /usr/backup ext3 user,exec,dev,suid 1 2
/dev/hdg5 /usr/media ext3 user,exec,dev,suid 1 2
/dev/hdg1 /usr/pictures ext3 user,exec,dev,suid 1 2
/dev/hdg6 /usr/storage ext3 user,exec,dev,suid 1 2
/dev/hde5 swap swap defaults 0 0
 
Old 10-24-2003, 02:28 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,264

Rep: Reputation: 128Reputation: 128
If you want ordinary users to be able to mount, put "user,noauto" in the fstab options. Mounting as root will not effect the ability of other users to write to the partition provided that the permissions are properly set on the mount point. For partitions with linux file systems, the rwx permisions are set through the mount point. However, for the permissions to flow down the entire partition, you must do the chmod while the partition is mounted. Using one of your data partitions as an example:

$ mount /mnt/media
$ su
<enter root password>
# chmod 1777 /mnt/media

rinse and repeat for the other data partitions.

That should do it. The trick is to remember to do chmod with the partition mounted and use 1777, instead of 777.
 
Old 10-26-2003, 10:28 AM   #3
griphiam
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Its not working...

It gives me temporary write access, but then after a period of time (it doesn't seem to be anything else), it goes back to not being able to write to those points (the mount point permissions revert).

I'm running Mandrake 9.2 if that has any affect on it.

Its really annoying having to su and chmod 1777 it every time I want to write to it.

Anything else I should do? Would changing ownership affect anything?
 
Old 10-26-2003, 06:21 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,264

Rep: Reputation: 128Reputation: 128
That's really wierd. Something has to be changing the permissions back, particularly if they revert w/o rebooting or remounting. The only thing I can think of is some daemon running in connection with an overly high security setting, probably msec. In mandrake control center>security>draksec, check your security setting and if it's not set to "standard" or "high", reset it to one of these. Unless your running a server, you don't need anything greater than these and the "higher" and "paranoid" settings start to really impact usability.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM


All times are GMT -5. The time now is 06:49 AM.

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
Open Source Consulting | Domain Registration