On Sun, 2005-07-10 at 20:43 +0100, beb wrote:
Peter Hunter wrote:
On Sun, 2005-07-10 at 19:21 +0100, beb wrote:
Peter Hunter wrote:
Sorry, whilst I am at it, there is one more. I tried to re-install my backups from the CD I burned. But I cannot mount the CD or DVD drives as I don't have permission (as a user). I can re-boot the machine and log in as root, and then mount the drive and copy the files over, and then re-boot as user. But if I do that I still can't access fy info (address book etc.) as they 'belong' to root! So, how do I mount the drives as user?
Have you sorted this yet? If not, then...
Chances are your username isn't attached to the correct groups. Could you post the output of 'ls -l /media' (I think SuSE mounts all the discs there) so we can see which group the cdrom belongs to and the output of 'less /etc/groups | grep username (where username is your username (bet you couldn't guess that one <grin>)) so we can see which groups *you* belong too please?
beb
peter@linux:~> ls -l /media total 0 drwxr-xr-x 2 root root 48 2005-03-23 15:30 bmp_audio_cd drwxr-xr-x 2 root root 48 2005-07-08 18:41 cdrecorder drwxr-xr-x 2 root root 48 2005-07-08 18:41 dvdrecorder drwxrwxrwx 1 root root 0 2005-07-10 16:06 floppy drwxr-xr-x 2 root root 48 2005-03-22 18:54 xmms_audio_cd peter@linux:~> less /etc/groups|grep peter /etc/groups: No such file or directory peter@linux:~>
Does this help? Looks like it all belongs to root to me.
Peter
Whoops, that should be /etc/group, not groups :-)
OK, if you look in /etc/fstab there should be lines with /media/cdrecorder and /media/dvdrecorder on them. The first column of each of these lines should have something like /dev/hdc on them eg. mine is...
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0 /dev/hdd /media/cdrom1 udf,iso9660 ro,user,noauto 0 0
The directories in /dev/ is what linux automatically assigns hardware to, which is then linked to something a bit more memorable (/media/cdrecorder etc.). I can't explain it well, but have a look in your unix book for stuff about 'devices').
Could you please do 'ls -l /dev/hdc' (substituting /dev/hdc for whatever your fstab has in the first column). Oh, and that 'less etc/group | grep peter' again.
Not sure I explained that well. If not, mail me your /etc/fstab and I'll try to use that to explain a bit better.
beb
peter@linux:~> less /etc/group | grep peter dialout:x:16:peter video:x:33:peter peter@linux:~>
This is the contents of the fstab file
/dev/hdb2 / reiserfs acl,user_xattr 1 1 /dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0 /dev/hda5 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0 /dev/hdb1 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
Peter