LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-20-2009, 02:10 PM   #1
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Rep: Reputation: 0
Permissions problem with SMB mount SLES 10


Hello all,

I am having trouble understanding why I cannot make changes to a folder (or its files) even as root. The folder is actually located on an smb mount on a Windows box; if I log into the Windows box I can change the file there, but not as root on the Linux box (SLES 10). The error I get when trying to save the file is: E212: can't open file for writing. If I do an ls -l on this folder it is owned by root with the permissions one would expect. A df command on Linux console tells me that the folder is mounted and is not read-only.

Is there something special about the permissions because of the Windows box that I am missing? If someone could point me in the right direction I would be most appreciative.

Thanks,
Melinda
 
Old 12-20-2009, 05:32 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
What is the name of the file you're trying to save? Just in
case the problem is more of an issue with the underlying
file-system rather than permissions (e.g. a \ or a * in the
name will work for linux' file-systems, but not windows).
 
Old 12-20-2009, 05:34 PM   #3
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 779

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by chickenminnie View Post
Hello all,

I am having trouble understanding why I cannot make changes to a folder (or its files) even as root. The folder is actually located on an smb mount on a Windows box; if I log into the Windows box I can change the file there, but not as root on the Linux box (SLES 10). The error I get when trying to save the file is: E212: can't open file for writing. If I do an ls -l on this folder it is owned by root with the permissions one would expect. A df command on Linux console tells me that the folder is mounted and is not read-only.

Is there something special about the permissions because of the Windows box that I am missing? If someone could point me in the right direction I would be most appreciative.

Thanks,
Melinda
maybe, Windows' share configuration does not allow writing. error does point to this. check the share's permission's on Windows Box.
 
1 members found this post helpful.
Old 12-21-2009, 05:12 AM   #4
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Original Poster
Rep: Reputation: 0
There are two files...one index.html and one test.txt which seem fairly straightforward. I will check the Windows permissions when I get to the office.
 
Old 12-21-2009, 02:26 PM   #5
chickenminnie
LQ Newbie
 
Registered: Jan 2005
Location: ALbany, NY
Distribution: SLES
Posts: 13

Original Poster
Rep: Reputation: 0
At Ozanbaba's suggestion I checked the file permissions on the Windows side of things and buried deep in the folder config was where I needed to add the user who owned the mount point (as indicated in the fstab file). Thanks so much.
 
Old 12-21-2009, 02:51 PM   #6
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 779

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by chickenminnie View Post
At Ozanbaba's suggestion I checked the file permissions on the Windows side of things and buried deep in the folder config was where I needed to add the user who owned the mount point (as indicated in the fstab file). Thanks so much.
you're welcome
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 01:30 AM
Smb mount problem raypen Slackware 3 03-13-2007 05:49 PM
Mount smb Share with read/write permissions gjblackford Linux - Hardware 3 02-26-2007 01:14 PM
SMB mount file permissions - FC6 Abyteapart Fedora 3 02-25-2007 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 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
Open Source Consulting | Domain Registration