LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 05:24 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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, 05: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



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 10:03 AM
mount vfat hd in 777 Ravo Linux - General 2 02-22-2005 04:21 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
Newbie can't mount drive as 777 blueleft Linux - Hardware 9 08-10-2003 01:08 AM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:39 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