LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-08-2003, 03:16 PM   #1
dokterneo
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Rep: Reputation: 0
Angry mount doesn't work as non su even after chmod 777


When I type:

mount /dev/cdrom /mnt/cdrom I get:

mount: must be superuser to use mount

fstab is:

cat /etc/fstab
/dev/hda1 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda3 /home ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,users 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

mount file rights are:
-rwxrwxrwx 1 root bin 68884 May 31 17:26 mount*

This happened after I ran swaret and did a full system update.

mount -t smbfs -rw -o username=dok,password=xxxxx //serv01/d$ /mnt/serv01/d

does:

smbmnt must be installed suid root for direct user mounts (1001,1001)
smbmnt failed: 1

Can anyone help? I am going nutz here.
 
Old 08-08-2003, 03:23 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Try just 'mount /mnt/cdrom'.
 
Old 08-08-2003, 04:40 PM   #3
dokterneo
LQ Newbie
 
Registered: Jun 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Same thing... This really sucks
 
Old 08-08-2003, 04:53 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Hm. Sorry. I can't directly access /dev/sr0 as user but I can mount /mnt/cdrw which *means* /dev/sr0, so 'mount /dev/sr0 /mnt/cdrw' doesn't work and 'mount /mnt/cdrw' does.

Really, the 'users' entry in /etc/fstab should take care of it.

My /dev/cdrom points to /dev/hdc. Is it possible your arrangement is as screwed up as mine and /dev/cdrom is just pointing the wrong place? Maybe try 'mnt /dev/hdc /mnt/cdrom' or whatever your device is and skip the symlink?
 
Old 08-08-2003, 09:01 PM   #5
loonix
Member
 
Registered: Aug 2003
Location: Sydney Australia
Distribution: CentOS/archlinux
Posts: 40

Rep: Reputation: 16
Cool mount doesn't work as non su even after chmod 777

The problem lies in the permissions of the actual device. IE. /dev/hdc.
Here's what I had to do to get it running on my laptop. This method gives permission to only one unpriviliged user. ( im the only user ) :
root@laptop:/dev# chown lunix hdc
root@laptop:/dev# ls -alh hdc
brw-rw---- 1 lunix disk 22, 0 jun 10 2002 hdc

I am now able to mount the cdrom as user lunix. From both Gnome and shell.

This is the way I chose to do it as I don't need for just anyone to mount cdrom's.

Hope I have helped you in some way.
 
Old 08-08-2003, 10:48 PM   #6
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Rep: Reputation: 30
you can always make a group called, say, 'cdrom' which can access the drive and add privileged users to that group.

I don't remember exactly what commands you are supposed to use to do this, but I found them by doing
Code:
xine-check
with xine-libs and xine-ui installed. it checks to make sure it can access your dvd/cdrom drive to play stuff, and it gave me the advice of adding the cdrom group.

Last edited by stevenhasty; 08-08-2003 at 10:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessibility / password / chmod 777 Developer Beaud Linux - General 2 07-11-2005 07:46 PM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 05:36 PM
Is it safe to chmod 777 Navaboy Slackware 4 03-24-2005 06:54 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration