LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-11-2003, 12:57 AM   #1
Triple-B
LQ Newbie
 
Registered: Feb 2003
Location: Ohio
Distribution: SuSE 8.1
Posts: 8

Rep: Reputation: 0
Question 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.
 
Old 02-11-2003, 02:02 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
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...
 
  


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
mount smb drives as non-root user? cdhgee Linux - Software 5 09-05-2007 07:38 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
mount drives from user instead of root gonavy Linux - Newbie 2 11-29-2003 08:53 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM


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