LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-08-2004, 11:23 AM   #1
ursar
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
using cdburner as a usr - not as root?


What the freak? Still won't mount after changing ownership:

ls -l /dev/cdrecorder
lrwxrwxrwx 1 <usrname> users 3 2003-12-10 14:21 /dev/cdrecorder -> sr0

ls -l /dev/sr0
brwxr-xr-x 1 <usrname> users 11, 0 2003-09-23 12:59 /dev/sr0

<usrname>@linux:~> mount -t iso9660 /dev/cdrecorder /media/cdrecorder
mount: only root can do that

How to go about mounting so that I can burn backup data to cd?
Any help very much appreciated!

SuSE 9.0pro
 
Old 01-08-2004, 11:33 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
I don't believe your problem is the permissions to the device. It appears that their is some kind of built-in security in the mount command to only allow root to run mount (i.e. if(getuid() != 0) puts("mount: Only root can do that)

I don't remember the exact function without looking at the man pages, but you get the point If that's the case then your only hope is to find some way of disabling that security feature such as running mount as setuid root.
 
Old 01-08-2004, 11:41 AM   #3
atnan
LQ Newbie
 
Registered: Jan 2004
Location: sydney.au
Distribution: Gentoo
Posts: 23

Rep: Reputation: 15
Perhaps you could use sudo?
 
Old 01-08-2004, 12:10 PM   #4
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 35
It shouldn't matter how you mount it. In fact, I'm pretty sure that all cd burners don't specifically mount the device anyway. Your problem is that it's read only for users. You can't write to a device if it doesn't have write permissions. You would be best off adding a cdrecording group, and giving it write permission to the device.
 
Old 01-08-2004, 12:30 PM   #5
ursar
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
ea for bkup

Thanx itsme86, atnan, guygriffiths! Had made /dev/sr0 mod +w for usrname so I could write to the device; now, it seems still need root permissions (su)to use the burner - question now - burning a .tar.gz backup for a 2+ g file (split on several cds) will all have extended attr changed to root? This was what I ran into before. Fast response rocks!
 
  


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
separate /usr from root fs lawadm1 Linux - Software 1 09-06-2004 08:44 PM
Using root in X, how to run apps as a usr ? Dark Carnival Linux - Security 6 05-25-2004 04:06 PM
Separate partions for /usr, /home,/root, and /swap hedburner Slackware 2 09-14-2003 12:55 PM
cdburner crapped out crashmeister Linux - Hardware 3 11-06-2002 10:06 AM
change password for root usr utoks Linux - Newbie 2 01-06-2002 06:17 PM


All times are GMT -5. The time now is 01:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration