LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-06-2005, 06:07 PM   #1
misterwiddle
LQ Newbie
 
Registered: Apr 2005
Location: Albuquerque, New Mexico
Distribution: Kubuntu
Posts: 3

Rep: Reputation: 0
user cant mount after chmod 777 /bin/mount


In an attept to make it possible for me to mount something with a normal user, I typed:
Code:
#chmod 777 /bin/mount /bin/umount
Now, not only do I still get the message "only superuser can mount," I am completely unable to mount anything as a user even with the proper entries in fstab.
For instance in fstab i have the line "/dev/hda1 /mnt/windows-c ntfs noauto,umask=000,user,ro 1 0"
If I type:
Code:
$mount /mnt/windows-c
I get the same "only superusr can mount" message, which didn't happen before "chmod 777 /bin/mount"
My question is: how do I reset the permissions of /bin/mount and /bin/umount to what the were originally?
 
Old 04-06-2005, 06:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Hi, and welcome to LQ!

chmod u=rwxs,go=rx /bin/mount


What you wanted to achieve is done via /etc/fstab,
a line like
/dev/hda3 /winblows auto user,rw,umask=000 0 0
should get you there (modify to match your actual partition
and mountpoints, of course).


Cheers,
Tink
 
Old 04-06-2005, 06:36 PM   #3
misterwiddle
LQ Newbie
 
Registered: Apr 2005
Location: Albuquerque, New Mexico
Distribution: Kubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
thanks! that did it.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
mount vfat hd in 777 Ravo Linux - General 2 02-22-2005 05:21 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
Newbie can't mount drive as 777 blueleft Linux - Hardware 9 08-10-2003 02:08 AM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 11:48 PM


All times are GMT -5. The time now is 01:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration