LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2006, 12:23 PM   #1
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Rep: Reputation: 15
Trouble mounting network share


Using the terminal I tried to mount a network share, but it told me that only Root could preform that operation. So I switched to Root and tried to mount it again, but this time it told me that I didn't have permission to that share. So it lead me to believe it was trying to mount it with the Root's credentials, which wouldn't have access.

Is there a way I can perform the mount operation, but supply different credentials? Can I give a non-root user permission to the mount operation.

I have verified that all the correct files are in place and services are being run for nfs.

I am using Suse 10.1.
 
Old 09-08-2006, 12:55 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
show us your syntax
try appending "-o ro" to your statement and check if this works.
 
Old 09-08-2006, 05:35 PM   #3
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Original Poster
Rep: Reputation: 15
It still says "mount: only root can do that"

Here is what I put in #mount xxx.xxx.xxx.xxx:/sharename /mount/home/username -o ro
 
Old 09-08-2006, 05:58 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Add an appropriate line to /etc/fstab ...


CHeers,
Tink
 
Old 09-08-2006, 06:10 PM   #5
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Original Poster
Rep: Reputation: 15
Trouble mounting network share

I'm a little confused about that last post. What line would I add to /etc/fstab ?
 
Old 09-08-2006, 06:14 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Code:
xxx.xxx.xxx.xxx:/sharename /mount/home/username  nfs     noauto,user,rw  0       0
Something like that.


Cheers,
Tink
 
Old 09-08-2006, 06:24 PM   #7
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Original Poster
Rep: Reputation: 15
Forgive me if I am wrong but would that line change the permissions to nfs? And by putting it in the /etc/fstab won't that try to map that automatically at boot? Thanks for all the help.
 
Old 09-08-2006, 06:28 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
No, it wouldn't change the permissions (but that's something you'd want set-up
on the server side in the first place).

And no, it won't mount it automatically because of the noauto statement.


Cheers,
Tink
 
Old 09-08-2006, 07:01 PM   #9
Robeasts
Member
 
Registered: Dec 2005
Distribution: Ubuntu 6.10, Simply MEPIS 6.0
Posts: 35

Original Poster
Rep: Reputation: 15
Ok thanks. Could you please explain to me what - noauto,user,rw 0 0 - does? Thanks again for the help.
 
Old 09-08-2006, 07:20 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
man fstab



Cheers,
Tink
 
  


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
Problem mounting network share leupi Ubuntu 4 10-31-2006 02:28 PM
Trouble mounting Windows share luckythedonkey Linux - Newbie 2 04-03-2006 02:33 PM
Trouble mounting a Windows share lowpro2k3 Slackware 2 10-17-2005 05:38 AM
Samba > Trouble mounting remote NTFS share Harlin Linux - Software 6 06-20-2005 08:07 PM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 06:57 PM


All times are GMT -5. The time now is 06:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration