LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using cdburner as a usr - not as root? (https://www.linuxquestions.org/questions/linux-newbie-8/using-cdburner-as-a-usr-not-as-root-132727/)

ursar 01-08-2004 10:23 AM

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

itsme86 01-08-2004 10:33 AM

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.

atnan 01-08-2004 10:41 AM

Perhaps you could use sudo?

guygriffiths 01-08-2004 11:10 AM

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.

ursar 01-08-2004 11:30 AM

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!


All times are GMT -5. The time now is 10:49 AM.