user+cdrom problem.
[staff@localhost staff]$ mount /mnt/cdrom/
mount: must be superuser to use mount [staff@localhost staff]$ cat /etc/fstab /dev/hda6 / ext2 defaults 1 1 none /dev/pts devpts mode=0620 0 0 /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,unhide,exec 0 0 none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,umask=0,user,iocharset=iso8859-1,sync,codepage=850 0 0 /dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0 /dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850 0 0 /dev/hda8 /mnt/win_e vfat umask=0,iocharset=iso8859-1,codepage=850 0 0 none /proc proc defaults 0 0 /dev/hda7 swap swap defaults 0 0 [staff@localhost staff]$ ll /dev/hdc brw-rw-rw- 1 root root 22, 0 Mar 7 07:46 /dev/hdc [staff@localhost staff]$ pls help me how to set a cdrom to user can able to mount it? |
ls -l $(which mount)
-rwsr-xr-x 1 root root 84880 Aug 18 19:44 /bin/mount Set the permissions with "chmod 4766 /bin/mount" or whereever which mount said it was. Or just "chmod 4766 $(which mount)" |
[root@localhost root]# ls -l $(which mount)
-rwsrw-rw- 1 root root 95256 Jan 30 2004 /bin/mount* [root@localhost root]# chmod 4766 /bin/mount [root@localhost root]# [staff@localhost staff]$ moun mount.cifs mount.cifs3 [staff@localhost staff]$ mount.cifs mount.cifs mount.cifs3 [staff@localhost staff]$ mount.cifs mount.cifs mount.cifs3 [staff@localhost staff]$ mount.cifs mount.cifs mount.cifs3 [staff@localhost staff]$ mount.cifs there ias no mount command for user exists. i did what u said? what is that 4766? should i set 777 or else? [staff@localhost staff]$ mount /mnt/cdrom bash: /bin/mount: Permission denied [staff@localhost staff]$ THAT IS NOT WORKING? |
should i reboot my computer after change the permission?
|
Oops, sorry. Try "chmod 4755 $(which mount)" instead.
No need to reboot. You should also do a "chgrp cdrom /dev/hdc" or choose some other group to which your user belongs. Might as well do the same for the mountpoint if needed "chgrp cdrom /mnt/cdrom/" My permissions on those look like: ls -ld /dev/hdc /cdrom drwxrwx--- 2 root cdrom 4096 Sep 5 2004 /cdrom brw-rw---- 1 root cdrom 22, 0 Nov 14 2003 /dev/hdc |
Might be dangerous to change permissions on mount altogether. Just edit the line in /etc/fstab for mounting the cdrom to include root. For more info on this, man mount.
|
Might be dangerous to change permissions on mount altogether. Just edit the line in /etc/fstab that contains the mount command for cdrom to enable any user to mount the cdrom. For more info on this, man mount.
|
All times are GMT -5. The time now is 03:47 AM. |