You are not logged in.
Pages: 1
I've been having trouble accessing my devices, all except the floppy. I must log in as root to use cdrom,dvd, and flash drive. I have added my user to audio,optical,disk,root, and sys. Udev rules say all these groups have access to the devices. I've tried changing the rights to the folders as well with no luck.
Also, I cannot ssh into my machine and I noticed the /etc/host.deny file is supposed to be modified to be able to use it but what should it look like? Could these two problems be related?
Please help, this is driving me nuts! :x
here is my fstab:(i've tried the default values too-/dev/cdroms/cdrom0~)
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
/dev/fd0 /mnt/fl vfat rw,users,noauto 0 0
/dev/hdc /mnt/dvd udf rw,users,noauto,unhide 0 0
/dev/hdd /mnt/cd iso9660 rw,users,noauto,unhide 0 0
/dev/sda1 /mnt/usbflash vfat rw,users,noauto,umask= 0 0 0
/dev/discs/disc0/part5 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 0 0
Offline
I did not touch hosts.deny, I added this to hosts.allow for ssh:
sshd:ALL
Make sure you are starting the daemon in /etc/rc.conf
For the udev permissions. Check that the device is okay:
ls -l /dev | grep hdc
Also, I think you need to log out and back in for changes to your group to take effect. I have a file called /etc/udev/permissions.d/00.permissions that has this in it:
hdc:root:optical:0666
For my cd burner.
Offline
Thanks, Colnago ssh works now but still trouble with devices. I checked them at it returned: [root@eLINUXe ~]# ls -l /dev | grep hdc
#lrwxrwxrwx 1 root root 13 2005-01-29 02:46 hdc -> cdroms/cdrom0
#[root@eLINUXe ~]# ls -l /dev | grep hdd
#lrwxrwxrwx 1 root root 13 2005-01-29 02:46 hdd -> cdroms/cdrom1
#[root@eLINUXe ~]# ls -l /dev | grep sda1
#brw-rw---- 1 root disk 8, 1 2005-01-29 07:46 sda1
hdd is a cd writer that will open and hdc is a dvdwriter/cdwriter combo drive that will not - neither will sda1. Could these two devices be entered wrong?
Here is the error message that i get only when in user:
#mount: wrong fs type, bad option, bad superblock on /dev/hdc,
#or too many mounted file systems
#Please check that the disk is entered correctly.
Offline
It seems you're using devfs - in that case check the permissions on /dev/cdroms/cdrom[01]. They should be 660 or 666.
I don't know if it has any impact, but you should change rw to ro next to the cd and dvd stuff. And I'm personally using user instead of users, but I guess it's a matter of taste.
Offline
no, im not using devfs i switched over to udev --bootup says starting udev
Offline
Well, was my guess, as on my udev system /dev/cdroms/cdrom0 is a symlink to /dev/hdc, not the other way around, as it is on your system. Maybe that's the lead? O_o Anyway, change rw to ro. I don't like giving hints in cases like that, when I can't seek the error and experiment myself :-)
Good luck.
Offline
ok, I change the fstab to that, still no luck.
Offline
are you passing the "devfs=nomount" to the kernel at boot?
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
yes i did, it udev shows up in the boot.
Offline
I found the problem, it was in my fstab. For the flash drive, I had to remove the space between = and 0 (umask= 0 0 0 -->umask=0 0 0). With the dvd, I had to replace UDF with iso9660. Every thing reads fine with the dvd drive, only i cant eject without being root. I have no clue how I was able to mount these devices as root.
Thanks for everyone's help!
Offline
Pages: 1