On Fri, 24 Jan 2003, Matt Lashley wrote: > A snip of share directives from our /etc/smb.conf. We're able to share > Linux disks with Win2K workstations running under VM. > > [all] > path = / > writeable = yes > create mode = 0775 > user = root,jeremyw,shannag,normac > > [dvlprs] > path = / > writeable = yes > valid users = @dvlprs > create mode = 0775 > directory mode = 0770 > force group = dvlprs
Note that all created files will be executable, which is quite annoying. Also keep in mind that sharing / (the whole tree) is not always advised. In most cases you'd share a specific part of the tree. Anyway, there is a default share of the home directory of the user. You can put a symlink from there to any other dirs the user should access. The homedir share brings me to one other cool thing you can do with samba: You can have a share that depends on the some parameter of the connection: the path of the home share is actually '%H' While you can have silly share names like '/var/samba/%v' (just in case you have multiple versions ;-) ), you can also do some useful things, like a share of: '/var/machine/%m' '/staff/%u/samba' '/files/teams/%g' See smb.conf (5): variable substitution -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir
