Some linux-cifs-client ideas

Stefan (metze) Metzmacher metze at samba.org
Mon Aug 23 11:37:47 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Steve,

I someone told me that you want to support that each user can use it's own credentials when mounting
a share on a cifs server...is that correct?

I have a view ideas how to realise this:

1. What we want

- - Every unix user should be able to mount and umount cifs shares when he wants it,
~  so not only at login time. (using it's own credentials: user/dom/pass or krb5...)

- - (Maybe) browse through the network neighbourhood like browsing through a unix directory

2. Aproach

- - having a virtuell cifs filesystem (like sysfs) mounted on /cifs
~  every unix user should have its own view of this filesystem.
~  (this file system will be mounted at boot time).

- - this filesystem has a /cifs/.ioctl file which is the io port for a tool 'cifsmount'
~  this will ask the virtuell filesystem to mount or unmount cifs shares.

- - this shares will appear in /cifs/* ( or maybe /cifs/mnt/)
~  (maybe also there will be a /cifs/network/ directory with
~   subdirectories for each known domain and subdirs for servers ...
~   just like the windows network neighbourhood)

- - there will be a /etc/cifsmount.conf and a per user ~/.cifsmount/config
~  for configuration stuff like auth protocol( e.g. disallow lanman...)
~  and other stuff

- - and for making it easier for the users there could be symlink ~/cifs to /cifs
~  in the home directory

3. Problems

- - that would also solve the problem, of what default uid/gid the files should have,
~  just use the ones from the user...

- - as I'm not a kernel specialist, I'm not sure if there will be problems
~  maybe with setuid() and friends.


Comments please?
- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBKdcLm70gjA5TCD8RAosUAJ9+ISGJeF7MlfWodR0qJnDhnyDmcwCglL8h
e3NPd+r4GEdfgZ8Iv9KZYNw=
=9iZS
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list