LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-06-2009, 08:56 AM   #1
nullnill
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
mount. root rw:ok. user rw problems


Hi.

So I mounted a directory over the network. This is my fstab entry:
Code:
//192.168.100.100/files /mnt/files cifs rw,username=uname,password=passw,_netdev,uid=1000,gid=100 0 0
As root I can nano,pico,vi, etc. a file and save.
As user I can nano a file and save. (Hurray for console).

If I try and modify one of the existing files in the mount it gives me a "Error writing /mnt/files/file.txt No such file or directory".

My local user id is the same user id of the files on the remote machine. eg 1100 here, 1100 there. group id is the same on both machines.

Hope anyone can help.

Last edited by nullnill; 02-09-2009 at 06:53 AM.
 
Old 02-07-2009, 01:56 AM   #2
tquinn1
LQ Newbie
 
Registered: May 2006
Posts: 19

Rep: Reputation: 1
if your uid is 1100, if you look at your post you have it as 1000. Not sure if that was a copy paste, or if the 1100 was a typo on your part, but the second syntax looks correct if your uid is 1000. If you manually mount it with a

mount -v //192.168.100.100/files /mnt/files cifs \ rw,username=uname,password=passw,_netdev,uid=1000,gid=100 0 0

what the output would be.

Last edited by tquinn1; 02-07-2009 at 01:57 AM. Reason: to add the backslash to define the command as being on one line
 
Old 02-09-2009, 06:36 AM   #3
nullnill
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
1100 was just an example. no mistake there.

verbose prints this:

"mount.cifs kernel mount options unc=//192.168.100.100\files,ver=1,rw,username=uname,password=passw,uid=1000,gid=100"

what it gives me on nano an existing file is the "no such file or directory".

I got another machine which mounts from same place, just different dir according to user and it works.

Last edited by nullnill; 02-09-2009 at 06:51 AM.
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
could user (not is root) mount ? anhvuvnn Linux - General 6 12-18-2005 07:50 PM
Mount Cd as non-root user rayyen Linux - Newbie 4 08-31-2003 09:21 AM
Can't mount as non-root user thepenguinhippy Linux - Newbie 4 07-30-2003 03:32 PM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
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