You are not logged in.
Hi all,
I am trying to set up a user account for my self on my own AL workstation at home and quite frankly I just about had enough of all those "Permission denied" messages. I got most things (sound, multimedia etc) to work but I still cannot access cdroms e.g.
$ ls /mnt/cdrom
$ ls: /mnt/cdrom/media: Permission denied.
I use $ sudo mount /mnt/cdrom to mount the drive an my udev permissions for the cdrom are: cdroms/*:root:users:0660
Please help me before I go back to my cosy root login!
Thanks in advance.
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
Just add your user to the optical group.
It's :
gpasswd -a user optical
Also, you should add him to the audio group.
Offline
Just add your user to the optical group.
It's :
gpasswd -a user opticalAlso, you should add him to the audio group.
Thanks for the quick reply. Tried it but doesn't work because I changed the udev permissions of the cdrom to root:user from root:optical. And I had another look at the problem and what happens is that when I mount the cdrom drive, the permissions of the /mnt/cdrom directory change from all rwx to all r only, so the cdrom mount dir is not executable/accessible any more!
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
if you wanna mount as user try this
# chmod 4755 /bin/mount
arch + gentoo + initng + python = enlisy
Offline
if you wanna mount as user try this
# chmod 4755 /bin/mount
Thank you for that, I can mount as user now but my filer (I use IceWM and ROX filer as my desktop) says: lstat(2) failed: Permission denied when opening /mnt/cdrom. According to man 2 lstat, I need "search" rights to do that but man chmod has no mention of search rights. I have given a+rwx rights to /mnt/cdrom but when mounted, write and execute perms are removed. I am sure this is the cause of the problem but still have not figured out the fix.
Thanks again.
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
here is my /etc/fstab lines for the opticals
/dev/hdd /mnt/cd iso9660 ro,user,noauto,unhide 0 0
/dev/hdc /mnt/dvd iso9660,udf ro,user,noauto,unhide 0 0
and i use this to mount them
€ mount /dev/hdc
good luck
arch + gentoo + initng + python = enlisy
Offline
here is my /etc/fstab lines for the opticals
/dev/hdd /mnt/cd iso9660 ro,user,noauto,unhide 0 0 /dev/hdc /mnt/dvd iso9660,udf ro,user,noauto,unhide 0 0
and i use this to mount them
€ mount /dev/hdc
good luck
Well, got it to work after all, I reverting to the original udev.permissions by removing my own 00-my-udev.permissions file, in which I had changed permissions of some devices to root:users, and adding my user to optical group. Don't know why it didn't work the very first time but anyhow. Still, this resulted in me loosing my TV and radio device access because their permissions are root:root. I changed this to root:video, created a video group and added my user to it: presto, TV/radio are back! Don't know though why v4l devices are root:root and how much of a bad thing are my changes.
Thanks again and season's greetings to you and all.
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
xerxes nice. now tell us how to change to the Euro Sign, cause I cannot stand $ anylonger..
Offline
just edit ps1 in /etc/profile or maybe better, put it in ~/.bashrc
you may have to use utf-8 encoding to make it work, i do
PS1='[u@h W]€ '
export BROWSER='mozilla-firefox'
export LC_CTYPE='sv_SE.UTF-8'
export LANG='en_GB'
arch + gentoo + initng + python = enlisy
Offline
yup it was easy
always a UTF8er
Offline