You are not logged in.

#1 2004-12-18 18:39:47

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

"Permission denied" blues

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

#2 2004-12-18 18:50:24

luisfelipe
Member
Registered: 2004-05-06
Posts: 96

Re: "Permission denied" blues

Just add your user to the optical group.
It's :
gpasswd -a user optical

Also, you should add him to the audio group.

Offline

#3 2004-12-18 19:13:01

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: "Permission denied" blues

luisfelipe wrote:

Just add your user to the optical group.
It's :
gpasswd -a user optical

Also, 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

#4 2004-12-18 20:20:56

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: "Permission denied" blues

if you wanna mount as user try this

# chmod 4755 /bin/mount

arch + gentoo + initng + python = enlisy

Offline

#5 2004-12-19 06:03:18

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: "Permission denied" blues

xerxes2 wrote:

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

#6 2004-12-19 11:51:38

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: "Permission denied" blues

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

#7 2004-12-19 12:58:50

neok
Member
From: Cyprus
Registered: 2003-12-14
Posts: 190
Website

Re: "Permission denied" blues

xerxes2 wrote:

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

#8 2004-12-19 16:27:34

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: "Permission denied" blues

xerxes nice. now tell us how to change to the Euro Sign, cause I cannot stand $ anylonger..

Offline

#9 2004-12-19 22:00:02

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: "Permission denied" blues

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

#10 2004-12-19 23:21:28

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: "Permission denied" blues

yup it was easy smile
always a UTF8er smile

Offline

Board footer

Powered by FluxBB