LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2005, 10:18 PM   #1
xbriank
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 5
Posts: 9

Rep: Reputation: 0
Question why do I have to be root to...


why do I have to be root to execute
Code:
mount -o loop -t iso9660 filename.iso /mnt/iso
I am the owner and group for the file, and I just dont see why root needs to do this... possibly a config problem somewhere??
 
Old 02-08-2005, 10:27 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Your also the owner and or have permissions to the /mnt directory and subdirectory as well?
 
Old 02-08-2005, 10:37 PM   #3
xbriank
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 5
Posts: 9

Original Poster
Rep: Reputation: 0
I am the owner of /mnt/iso but not /mnt... I tried the same to /home/me/iso (a new dir I just made for which I own as well same result -- only root can do that
 
Old 02-08-2005, 11:09 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Code:
$ ls -l /dev/loop*
brw-rw----  1 root disk 7, 0 2005-02-07 18:08 /dev/loop0
The loop is a device you don't have perms to. Your perms/owners may be slightly different, but it'd be the same idea. If you did have root.disk, you could add yourself to the 'disk' group or various other things.
 
Old 02-08-2005, 11:24 PM   #5
xbriank
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 5
Posts: 9

Original Poster
Rep: Reputation: 0
ok, added myself to disk group -- same result. do I need an entry in fstab or something, i mean all I am trying to do is mount an iso image... should not be this complicated
 
Old 02-08-2005, 11:34 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you issued
mount -o loop -t iso9660 filename.iso /home/me/iso
and the loop devices do have group disk (they may not on Fedora) and you've logged out and logged back in and you still get that, then I'm afraid I don't know. A bit of a copout but, at that point, why not su?
 
Old 02-08-2005, 11:49 PM   #7
xbriank
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 5
Posts: 9

Original Poster
Rep: Reputation: 0
I can't log out yet, (I am in the middle of a file xfer) but I did log back in under a different terminal, still wont work, I will try logging out as soon as I can

I dont want to use su to do this (althoug it does work) because A: I intend upon writing this bit of code to a script B: I am trying to better understand this os, and my nature will not allow me to take the easy way out and C: I shouldn't have to -- something is not working right and it will pester me all night (as it has for a couple days now)

Oh well I am sure I will figure it out eventually -- hopefully logging out will do it thx for help everyone so far --
 
  


Reply



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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
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
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
cant resize root thru rescue, auto mounts root dir absolutal Linux - Newbie 0 06-18-2003 03:06 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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