[Samba] windows copy versus move

Joe Konecny jkonecn at green-mfg.com
Fri Apr 8 14:01:11 GMT 2005

Running 3.0.4 on FreeBSD 5.2.1...

I have two directories...

drwxrwxr-x  root data_current  /usr/vol1/current
drwxrwx---  root data_current  /usr/vol1/hold

If a file is in /usr/vol1/hold with the following

-rwxrwx---  root data_hold  file1

...and a user MOVES it to /usr/vol1/current it
has the following attributes...

-rwxrwx---  root data_hold  file1

...if the user COPIES (then deletes the original)
it to /usr/vol1/current it has the following

-rwxrw-r-- root data_current file1
(I'm not sure why the execute bit disappears
but I think that is ok)

Is there any way I can make the windows
MOVE command work like COPY/DELETE?

<config file below>

	workgroup = ENDOR
	time server = Yes
	add user script = pw useradd %u -g nt_domain_users -c %c
	delete user script = pw userdel %u
	add group script = pw groupadd %g
	delete group script = pw groupdel %g
	add user to group script = pw groupmod %g -m %u
	delete user from group script = /usr/sbin/delete_user_from_group %g %u
	set primary group script = pw usermod %u -g %g
	add machine script = pw useradd  %u -g samba_machine_id -s 
/sbin/nologin -d /nonexistant
	shutdown script = x
	abort shutdown script = x
	logon script = logon.bat
	logon path =
	logon drive = G:
	logon home = \\%L\%u\.profiles\%m
	domain logons = Yes
	os level = 65
	preferred master = Yes
	domain master = Yes
	ldap ssl = no
	admin users = root
	write list = root
	printer admin = jim
	create mask = 0750
	print command = lpr -r -P%p %s
	oplocks = No
	level2 oplocks = No

	path = /usr/vol1
	read only = No
	inherit permissions = Yes

	path = /usr/vol1/netlogon
	browseable = No

	read only = No
	create mask = 0740
	browseable = No

More information about the samba mailing list