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
  Search this Thread
Old 08-13-2004, 09:51 PM   #1
Cynric
LQ Newbie
 
Registered: Aug 2004
Location: IL
Distribution: SuSE 9.1 Pro 64bit
Posts: 16

Rep: Reputation: 0
Mounting and writing partitions from a user.


I'm kinda at a loss here as to what to do. I'm running SuSE 9.1 Pro. I have a partition on a standalone blank drive. It's formated, etc. I would like to be able to mount the drive and then write to it as a user and not have to 'su' into root. I added the 'users' option to fstab which seems to address the mounting issue. But, I'm still not able to write to it. Any help would be greatly appreciated.
 
Old 08-13-2004, 10:48 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Post your /etc/fstab and we'll tell you what to change. It may be as simple
as changing ro to rw or such.
 
Old 08-13-2004, 11:13 PM   #3
Cynric
LQ Newbie
 
Registered: Aug 2004
Location: IL
Distribution: SuSE 9.1 Pro 64bit
Posts: 16

Original Poster
Rep: Reputation: 0
/dev/hda3 / reiserfs acl,user_xattr 1 1
/dev/hda1 /boot ext3 acl,user_xattr 1 2
/dev/hdg1 /downloads reiserfs acl,user_xattr 1 2
/dev/hdc1 /music reiserfs acl,user_xattr 1 2
/dev/hda4 /usr reiserfs acl,user_xattr 1 2
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrecorder11 /media/cdrecorder11 subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/hdg2 /lfs ext2 users,acl,user_xattr 1 2

That's the full file. The partition in question is /dev/hdg2 (/lfs), but /downloads and /music will recieve the same treatment.
 
Old 08-13-2004, 11:30 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I've used RedHat, Debian, Slackware and Mandrake and I've never seen an
/etc/fstab file like that. Perhaps a SuSE fellow will come along and help. I do
see that /dev/cdrecorder has the ro (read only) switch. It may be as simple as
adding rw (read write) to those lines like this
Code:
/dev/hdg1 /downloads reiserfs acl,rw,user_xattr 1 2
/dev/hdc1 /music reiserfs acl,rw,user_xattr 1 2
/dev/hdg2 /lfs ext2 users,acl,rw,user_xattr 1 2
but I can't tell you for sure. That will not hurt anything if you want to try it.
You might want to create a backup file named /etc/fstab.old and if it doesn't
allow you to write after you reboot, you can then delete the new file and then
rename /etc/fstab.old to /etc/fstab once again.

And there is a difference between user (the one currently logged in) and users
(any user on the system). If this box is standalone and you are the single user
it really doesn't matter - just another customization offered by GNU/Linux.
 
Old 08-14-2004, 12:28 AM   #5
Cynric
LQ Newbie
 
Registered: Aug 2004
Location: IL
Distribution: SuSE 9.1 Pro 64bit
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for looking it over, anyway. Will try putting 'rw' in the options.

Edit:
For the record, no, 'rw' did not work.

Last edited by Cynric; 08-14-2004 at 12:30 AM.
 
Old 08-14-2004, 12:02 PM   #6
Cynric
LQ Newbie
 
Registered: Aug 2004
Location: IL
Distribution: SuSE 9.1 Pro 64bit
Posts: 16

Original Poster
Rep: Reputation: 0
I was reading the linux from scratch manual and came across 'chmod a+wt'. Applied it to my partition and all is well. Thanks for the look over, Chinaman.
 
Old 08-15-2004, 02:11 AM   #7
ziyad
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
chown

You must do this as "root" once.

Code:
mount /dev/hdg2
chown user /lfs
Where user is the login name of the user (your login name?) you want to grant write permission for him/her.

Now, the user will have FULL control on that mount point "/lfs".
Keep in mind the security problems you might have if you don't trust the user.

I hope this is useful for you!.
ZIYAD.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to windows partitions, Suse 9.2 badbunny Linux - Newbie 8 08-06-2005 07:36 PM
Question about writing to windows partitions ludwig W Linux - Newbie 5 04-20-2005 03:25 AM
mounting windows partitions in writable mode for a normal user peevee Linux - Software 4 11-07-2004 04:08 PM
writing to NTFS Partitions bunnyknight13 Linux - Newbie 1 09-29-2004 09:08 PM
mounting ntfs partitions as a user in suse8.2 Anubis Linux - Software 6 08-31-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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