LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   using drives as a user, not root (https://www.linuxquestions.org/questions/slackware-14/using-drives-as-a-user-not-root-44897/)

Triple-B 02-11-2003 12:57 AM

using drives as a user, not root
 
Hello every one again,

Wow two post from me in 24 hours. I have pretty much got my computer setup with slackware 8.1 not including the new nvidia drivers for my video card. (what a pain). Now im trying to figure out how to get away from root and start using my computer as a user. What I gather is it is much safer to log in as a user than root. I have made a user and can log in with no problems. I even have X up and running through my user account. But when I try to mount a cd to play music or try to mount my zip drive to save some files I can not do it. I have tried changing the permissions on the /dev/hdc (cdrom drive) to 666 and even 777 using chmod under root. I have change the /mnt/cdrom mode to 666 or 777. No luck doing it that way. What am I missing? Is there a eaiser way to do this without changing every folder for standerd user needs. Thanks for you help everyone.

jharris 02-11-2003 02:02 AM

You need to change your fstab to include the 'user' option. For example assuming your CD-ROM is /dev/cdrom, your Floppy drive is /dev/fd0 and your Zip drive is /dev/hdc then you would want something like the following in fstab
Code:

/dev/cdrom /mnt/cdrom  iso9660 noauto,user,ro  0  0
/dev/fd0  /mnt/floppy auto    noauto,user      0  0
/dev/hdc  /mnt/zip    auto    noauto,user      0    0

Check out the manpage for mount for more options. Your normal user could then issue
Code:

mount /mnt/zip
to mount the Zip drive (for example).

HTH

Jamie...


All times are GMT -5. The time now is 03:33 PM.