Hi, Is it possible to use Samba as a drop-in replacement for NFS, namely, allowing a system-wide anonymous mount which authenticates access to files based simply on the unix ids of the user accessing the files and the file permissions are equivalent to what is present in the underlying file system that is exported. Thanks, Frood
On 5/5/05, Matt R <aaron_milwaukee@yahoo.com> wrote:> > > Hi, > > > > Is it possible to use Samba as a drop-in replacement > > for NFS, namely, > > allowing a system-wide anonymous mount which > > authenticates access to > > files based simply on the unix ids of the user > > accessing the files and > > the file permissions are equivalent to what is > > present in the > > underlying file system that is exported. > > > > Thanks, > > Frood > > Depending on your needs, possibly. Remember that smb > filesystems don't support unix symlinks. There could > be other changes. >I just tried symlinks and they worked (suprisingly!). I'm interested in finding out if I can have NFS-like mount semantics, where there is a systemwide mount that all users access, and access control is provided by unix file permissions, as opposed to SMB share semantics, where each user has to be authenticated before they can mount a file system.> -Matt > > Discover Yahoo! > Stay in touch with email, IM, photo sharing and more. Check it out! > http://discover.yahoo.com/stayintouch.html >
--- Frood <find.place@gmail.com> wrote:> On 5/5/05, Matt R <aaron_milwaukee@yahoo.com> wrote: > > > > > Hi, > > > > > > Is it possible to use Samba as a drop-in > replacement > > > for NFS, namely, > > > allowing a system-wide anonymous mount which > > > authenticates access to > > > files based simply on the unix ids of the user > > > accessing the files and > > > the file permissions are equivalent to what is > > > present in the > > > underlying file system that is exported. > > > > > > Thanks, > > > Frood > > > > Depending on your needs, possibly. Remember that > smb > > filesystems don't support unix symlinks. There > could > > be other changes. > > > > I just tried symlinks and they worked > (suprisingly!). I'm interested > in finding out if I can have NFS-like mount > semantics, where there is > a systemwide mount that all users access, and access > control is > provided by unix file permissions, as opposed to SMB > share semantics, > where each user has to be authenticated before they > can mount a file > system. > > -Matt > >As far as permissions, I'm not sure if its a windows server. if it's a samba server, then yes, UNIX permissions rule. As far as mounting smb, use mount_smbfs (options) $SERVER/SHARE $LOCAL_MOUTNT_POINT. refer the man page for more detail. It should be noted that (IIRC) that only Linux and Mac OS X can mount SMB shares. Other UNIXes don't support this. -Matt Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html
Akshat Aranya wrote:> Hi, > > Is it possible to use Samba as a drop-in replacement for NFS, namely, > allowing a system-wide anonymous mount which authenticates access to > files based simply on the unix ids of the user accessing the files and > the file permissions are equivalent to what is present in the > underlying file system that is exported. > > Thanks, > FroodI don't think so in the way you're thinking. Mounting any share through smbfs or cifs has to be done as a certain user. That user is used for the cifs session. Any file or directory operation is done as that user. pam_mount may help you out here for home directories or mounts in ~/mnt, but not for a common mount point on a multiuser system. http://www.flyn.org/projects/pam_mount A while ago (I'm talking only a few months) it was not possible to use a cifs mount for home directories for a Linux client for apps that use unix specific files like fifos and sockets. KDE for example would bomb if mounted via smbfs or cifs. Now it looks like it could work. I'm running kernel 2.6.11 and mounting via cifs a share on Samba 3.14a. get/setfacl works as well as making fifos. I haven't tried mounting a home directory yet. Make sure you have 'unix extension = yes'(it's the default) in smb.conf and a recent kernel. Rob