minor error with smb mount

Re: minor error with smb mount

Postby firwareslut » Mon Jan 02, 2012 7:10 pm

ok but real men use Linux haha!
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby firwareslut » Mon Jan 02, 2012 7:25 pm

The other thing this affects is the timestamp which is why rsync keeps copying the same files as it thinks the files are older than they are.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby Jocko » Wed Jan 04, 2012 8:28 am

This issue seems very common with the samba server. Try google with the words: chmod chown samba permissions denied

For now, I have not found an answer ...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: minor error with smb mount

Postby firwareslut » Wed Jan 04, 2012 8:56 am

Maybe it's a problem with the server version on the NAS? I don't understand that I can do it between Ubuntu machines with zero effort and no configuration other than the defaults. I have managed to configure rsync in a different way to avoid the problem.

I just read something about the workgroup needing to be the same. I will check this out.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby firwareslut » Wed Jan 04, 2012 9:18 am

ah fuck it I give up!

Tried this

//192.168.0.150/public /media/NETWORKHD cifs username=adam,password=xxxx,workgroup=mshome,uid=adam,gid=adam,users,allow_other 0 0

And set the samba configs on my ubuntu machine to be the same workgroup name.

But still no go! It would have made sense for why the windows connection managed to change the permissions though?
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby Jocko » Wed Jan 04, 2012 9:38 am

Bad new

On some forums, topics with the same issue, open since several years (particularly with ubuntu) are still unresolved!
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: minor error with smb mount

Postby firwareslut » Wed Jan 04, 2012 9:55 am

I think I am getting closer.

I tried mounting the share with the wrong password and it still mounted. I suspect it might having something to do with the guest account.

What configuration smb.conf do I need to play with to make some new tests? I noticed there are two. And how do i stop and start the samba service?
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby fvdw » Wed Jan 04, 2012 10:30 am

well as said I think it is more likely a client issue. I mean when windows can change the permissions there must be a way to mount it that it works.
I thought the same about guest account, but thats not the case. Only in case of a bad password then the mount is mapped to the the guest account, which is assigned to user nobody. Just try to create a file in the mounted share. When you have used the right password it will be owned by the user that made the mount. If not it will mention nobody as owner.
I made a test with changing the paswd files (on the samba server) and given the user login access (as default all users have no login access. This because I read that user must have a valid login. (still a question mark why windows doesn't need it). Now when mounting it with that username and running Linux witht the same username on the client I get operation not permitted instead of permission denied. Of course still not a solution.

the smb.conf file is in /rw_fs/tmp/usr/lib
It will be recreated at every boot so changes will not be permanent, for that the boot scripts must be adapted. But as long as you don't reboot you could make changes in the file. For some I think you don't need to stop and restart samba. Below the commands that you could use to stop and start samba

stop samba
Code: Select all
killall -9 nmbd
killall -9 smbd


start samba
Code: Select all
/usr/sbin/nmbd -D -l /var/log/samba
/usr/sbin/smbd -D -l /var/log/samba


which settings to change ? I tried various such as adding user as administrator and using dos filemode and but no solution....(I also tried adding mounting with workgroup name but no solution)

More info on settings you can find here
http://www.samba.org/samba/docs/man/man ... onf.5.html
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: minor error with smb mount

Postby firwareslut » Wed Jan 04, 2012 11:53 am

OK will give it a shot but it sounds like you have tried the examples I had planned.

I just don't get it. We are both experiencing results that contradict each other.

1. You can change permissions from Windows to the NAS share
2. I can change permissions from Ubuntu to another Ubuntu install over smb mount (so client is the set up the same way)
3. Neither of us can change permissions from Linux to NAS share
Last edited by firwareslut on Wed Jan 04, 2012 12:20 pm, edited 1 time in total.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: minor error with smb mount

Postby fvdw » Wed Jan 04, 2012 12:12 pm

We are talking on SMB share, not NFS
add 1. I can change permission of files in a SMB share on the NAS from windows if the username used by windows is owner of the file (this is also the way it is supposed to work).
add 2. maybe it is useful to compare smb.conf files
ad 3. correct so far i could not change permissions using Linux on the NAS of files in a mounted SMB share from another NAS running Linux.

To make it complicated
4. I can change the write permission (on/of) of the owner using Linux on the NAS on files in a mounted share on the NAS of a shared (samba) folder of Windows PC, that is a ntfs file system.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 3 guests