Re: Mount Linux to Linux Samba share w/permissions?



Jeremy Allison wrote:

On Wed, 07 Jun 2006 22:31:00 -0400, bobmct wrote:

I've been using Samba for about a decade now quite successfully.
However, I'm in the process of replacing most (hopefully all) of my
windoze
desktops with SUSE 10.1 desktops. I wish to mount the remote server
samba shares on these new desktops but retain the ownership and
permissions as
they currently exist on the server. I've tried both "mount" and
"smbmount" but cannot seem to get my parameters correct for this. Yes -
I can mount them, see them and access them but I need to be able to
create files and have them created with the desktop user's name and
group.

Other than forcing a user/group in the smb.conf... can anyone recommend
how I can achieve this?

Ignore the nay-sayers in this group - this is *exactly* what we're
hoping people will do with SuSE Linux 10.1 clients and Samba servers.
Use the CIFSFS client, not the unsupported smbfs client.

The UNIX to UNIX CIFS modifications are directly designed to do this.
NFS to the desktop is dead, as you've noticed it has some severe
deficiencies.

You firstly need to share uid and gid info between the server and clients,
until we've finished the UNIXINFO pipe use either NIS or an LDAP backend
to do this. Ensure the Samba server is modern (3.0.22 or the 3.0.23RC2
candidates) and make sure the users are added into the passdb backend of
your choice (LDAP if you're using an LDAP server, tdb is you're using
NIS).

The UNIX extensions in the client and server should mean that the uids
and gids as seen on the clients are identical to the server, permissions
too. Check this with ls -l. Once this is correct then the mounted user
should be able to create files and will be seen as the correct user and
primary gid. You even get POSIX ACL support (and EA's).

If you have problems, please log bugs with the SuSE bugzilla. This is
supported and should work well.

Jeremy Allison,
Samba Team.

WOW! Great Jeremy;

I will give this a go and post my results.

Thanks,

Bob
.



Relevant Pages

  • [HPADM] SUMMARY -- nfs hang due to stad or lockd?
    ... It looks like the server will need a reboot at some point in time. ... the affected clients are compute servers. ... lab that cannot do a "ll" of a couple of mount points. ...
    (HP-UX-Admin)
  • [HPADM] Re: nfs hang due to stad or lockd?
    ... clear_locks is your bet, and also see if application is using any lock files, those are in place or not. ... We have a nfs server that has at least 50 systems mounting file systems ... lab that cannot do a "ll" of a couple of mount points. ... /var/statmon/sm for the affected clients, ...
    (HP-UX-Admin)
  • Re: [Off-topic]cvs hangs due a dangling nfs.
    ... I use automount to share a partition via NFS so every machine can mount this share. ... One the machines was removed, but now a few clients can't use the CVS server. ... If you do use cvs across nfs, may I suggest you investigate the use of verify_repo running on what ever machine now physically hosts the repository. ...
    (Fedora)
  • Re: Mount Linux to Linux Samba share w/permissions?
    ... desktops with SUSE 10.1 desktops. ... they currently exist on the server. ... hoping people will do with SuSE Linux 10.1 clients and Samba servers. ...
    (comp.protocols.smb)
  • Re: Mount Linux to Linux Samba share w/permissions?
    ... desktops with SUSE 10.1 desktops. ... I wish to mount the remote server samba ... hoping people will do with SuSE Linux 10.1 clients and Samba servers. ... You firstly need to share uid and gid info between the server and clients, ...
    (comp.protocols.smb)