Hello,
Is there a parameter in smb.conf that prevent users to use drag and drop
within Samba shares?
I know this is a Winedow$ function, but some users (hum, hum) use Explorer
to open their files and
accidentally they drag and drop sometimes a directory in the root of the
share to another directory in the root of the share.
My samba server is member of a native W2k3 server Active Directory and AD
users are able to access the Samba shares.
The share is configured like this in smb.conf:
[grp]
comment = Group Directory
path = /data/grp
valid users = @NH-HOTELES.COM\DEP_RHEL4_MEMBER
read only = No
inherit permissions = Yes
hide unreadable = Yes
The /data/grp directory looks like this:
drwxrws--- 2 root NH-HOTELES\dep_rhel4_adm 4096 Sep 11 2006 adm
drwxrws--- 4 root NH-HOTELES\dep_rhel4_fog 4096 Mar 9 2007 fog
If a user is member of dep_rhel4_adm and dep_rhel4_fog he/she is able to
drag and drop the fog directory into the adm directory.
If it is not possible to configure this within smb.conf, can I do something
on the Linux side?
Thanx for any answer.
Alex.
Visit our Web site: http://www.nh-hotels.com
This message is from NH HOTELES and it is private and confidential.
Its content may be legally protected.Reception by a non-intended person does not
waive legal protection rights.
If you receive this message by mistake, please delete it from your system and
report the sender.
Although this message has been cleared for viruses using currently available
virus definitions before sending,
it is the responsibility of the receiver to ensure it is virus-free.Thank you.
Alex de Vaal wrote:> Hello, > > Is there a parameter in smb.conf that prevent users to use drag and drop > within Samba shares? > > I know this is a Winedow$ function, but some users (hum, hum) use Explorer > to open their files and > accidentally they drag and drop sometimes a directory in the root of the > share to another directory in the root of the share. > > My samba server is member of a native W2k3 server Active Directory and AD > users are able to access the Samba shares. > > The share is configured like this in smb.conf: > > [grp] > comment = Group Directory > path = /data/grp > valid users = @NH-HOTELES.COM\DEP_RHEL4_MEMBER > read only = No > inherit permissions = Yes > hide unreadable = Yes > > The /data/grp directory looks like this: > > drwxrws--- 2 root NH-HOTELES\dep_rhel4_adm 4096 Sep 11 2006 adm > drwxrws--- 4 root NH-HOTELES\dep_rhel4_fog 4096 Mar 9 2007 fog > > If a user is member of dep_rhel4_adm and dep_rhel4_fog he/she is able to > drag and drop the fog directory into the adm directory. > > If it is not possible to configure this within smb.conf, can I do something > on the Linux side? > > Thanx for any answer. > > Alex. >I don't think there is any way for Samba to distinguish if a file operation initated by users drag and drop. What you need to do is change the behaviour of Windows Explorer on the problem desktops. Open Control Panel, Open Internet Explorer Settings, Security Tab, Local Intranet Zone, then click on the Custom button Scroll down until you find "Drag and drop or copy and paste files" and change from Enabled to prompt. You might also want to consider purchasing "AB Commander" for your users who find Explorer too cumbersome as the default file management app. AB allows much great customization of Drag-Drop behaviour. As for the Samba end, you can make the root folder read-only for a group of users, assuming they don't need to create new files/folders on the root of the share.
This *must* be do-able! If I want to veto a single directory at the root of the users home directory i.e. /home/user/Maildir I can with veto files = /Maildir/ However, this prevents the user from being able to create directories/files with that name *anywhere* in the directory structure. Is there a way I can set 'veto files' to only veto one particular directory? Thanks, Kev
Maybe Matching Threads
- Prevent drag and drop within Samba shares
- Serious bug in Samba 3.0.2pre1 !!!
- Issues after upgrade to 3.0.6 from 3.0.4; fixed in 3.0.7?
- 3.0.7; "string overflow by 1 (32 - 31) in safe_strcpy"
- "user 'root' does not exist" in winbindd.log after upgrade from 3.0.2a to 3.0.3