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
On Sun, 2005-07-10 at 21:53 +0100, Peter Hunter wrote:
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
I forgot this, sorry.
peter@linux:~> ls -l /dev/hdb2 brw-rw---- 1 root disk 3, 66 2005-03-19 19:36 /dev/hdb2 peter@linux:~>
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
Peter Hunter wrote:
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
I forgot this, sorry.
peter@linux:~> ls -l /dev/hdb2 brw-rw---- 1 root disk 3, 66 2005-03-19 19:36 /dev/hdb2 peter@linux:~>
Right...Could you do a 'ls -l /dev/cdrecorder' and 'ls -l /dev/dvdrecorder' Hopefully that might help. Actually, could you do the same for /dev/hdc and /dev/hdd too? I have a sneaky suspicion that /dev/cdrecorder etc. will just be a symlink to them.
beb
Right...Could you do a 'ls -l /dev/cdrecorder' and 'ls -l /dev/dvdrecorder' Hopefully that might help. Actually, could you do the same for /dev/hdc and /dev/hdd too? I have a sneaky suspicion that /dev/cdrecorder etc. will just be a symlink to them.
beb
peter@linux:~> ls -l /dev/cdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:36 /dev/cdrecorder -> hdd peter@linux:~> ls -l /dev/dvdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:35 /dev/dvdrecorder -> hdc peter@linux:~> ls -l /dev/hdd brw------- 1 peter disk 22, 64 2005-03-19 19:36 /dev/hdd peter@linux:~> ls -l /dev/hdc brw------- 1 peter disk 22, 0 2005-03-19 19:36 /dev/hdc peter@linux:~>
This all looks double duch to me. Although I'm sure that one day I'll understand it!
peter
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
Peter Hunter wrote:
Right...Could you do a 'ls -l /dev/cdrecorder' and 'ls -l /dev/dvdrecorder' Hopefully that might help. Actually, could you do the same for /dev/hdc and /dev/hdd too? I have a sneaky suspicion that /dev/cdrecorder etc. will just be a symlink to them.
beb
peter@linux:~> ls -l /dev/cdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:36 /dev/cdrecorder -> hdd peter@linux:~> ls -l /dev/dvdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:35 /dev/dvdrecorder -> hdc peter@linux:~> ls -l /dev/hdd brw------- 1 peter disk 22, 64 2005-03-19 19:36 /dev/hdd peter@linux:~> ls -l /dev/hdc brw------- 1 peter disk 22, 0 2005-03-19 19:36 /dev/hdc peter@linux:~>
This all looks double duch to me. Although I'm sure that one day I'll understand it!
Does anyone know enough about SuSE to explain how it handles stuff like this. A bit of googling suggests that it's quite different from how the distros I know (something to do with 'sysfs'?). Unless Peter has been messing around with chown and chmod (which I guess is unlikely) those entries for /dev/hdc and hdd are...strange.
(I've read the post saying the problem has gone, this is just curiosity)
beb
On Mon, 2005-07-11 at 19:25 +0100, beb wrote:
Peter Hunter wrote:
Right...Could you do a 'ls -l /dev/cdrecorder' and 'ls -l /dev/dvdrecorder' Hopefully that might help. Actually, could you do the same for /dev/hdc and /dev/hdd too? I have a sneaky suspicion that /dev/cdrecorder etc. will just be a symlink to them.
beb
peter@linux:~> ls -l /dev/cdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:36 /dev/cdrecorder -> hdd peter@linux:~> ls -l /dev/dvdrecorder lrwxrwxrwx 1 root root 3 2005-07-11 17:35 /dev/dvdrecorder -> hdc peter@linux:~> ls -l /dev/hdd brw------- 1 peter disk 22, 64 2005-03-19 19:36 /dev/hdd peter@linux:~> ls -l /dev/hdc brw------- 1 peter disk 22, 0 2005-03-19 19:36 /dev/hdc peter@linux:~>
This all looks double duch to me. Although I'm sure that one day I'll understand it!
Does anyone know enough about SuSE to explain how it handles stuff like this. A bit of googling suggests that it's quite different from how the distros I know (something to do with 'sysfs'?). Unless Peter has been messing around with chown and chmod (which I guess is unlikely) those entries for /dev/hdc and hdd are...strange.
(I've read the post saying the problem has gone, this is just curiosity)
beb
Thank's beb. I can assure you that i haven't touched chown or chmod (I'll look them up in a mo), as yet I've no idea what they are. I'll keep all of these emails though. I'll be upgrading my computer soon so I'll be re-installing the OS from scratch (all part of the learning curve. I could just swap hard drives, but that's no fun!), so I'll be doing all this again. I'll list those files that you have had me do and compare them to the old ones, just out of interest. I'll keep you informed.
Peter
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!