Samba 2.0.6 and logon scripts: file permissions?

Samba 2.0.6 and logon scripts: file permissions?

Post by Andrea Borgi » Wed, 08 Mar 2000 04:00:00



Hi.

I have successfully setup a PDC with Samba and logon scripts are
working as documented, but...

I have a Perl script that creates customized logon scripts for each
user and the last thing it does is making the BAT files 0644 to
prevent local users from changing them. Unfortunately, after a user
has logged onto one of the workstations, the file becomes 0666, thus
opening a potential hole where someone could change the contents of
the script and have it executed if the user logs onto more than one ws
at the same time (or use it to escape quota restrictions, but this is,
ehr, quite artistic).

Any idea of why the perms are changing? Is it samba or windows? But
then again why should windows make it rw since it won't touch that
file again for the whole session?

TIA for all help,
Andrea.

--

 
 
 

1. Samba 2.0.6 and logon scripts: file permissions?

Hi.

I have successfully setup a PDC with Samba and logon scripts are
working as documented, but...

I have a Perl script that creates customized logon scripts for each
user and the last thing it does is making the BAT files 0644 to
prevent local users from changing them. Unfortunately, after a user
has logged onto one of the workstations, the file becomes 0666, thus
opening a potential hole where someone could change the contents of
the script and have it executed if the user logs onto more than one ws
at the same time (or use it to escape quota restrictions, but this is,
ehr, quite artistic).

Any idea of why the perms are changing? Is it samba or windows? But
then again why should windows make it rw since it won't touch that
file again for the whole session?

TIA for all help,
Andrea.

--

Ham Radio:  IW4EGQ

2. WANTED: Xconfig for Toshiba 2400CS

3. SAMBA logon-script doesn't work

4. gated binary ?

5. Samba question (logon script)

6. probs with ftpd after kernel rebuild

7. Logon script using a samba-server & windows 9x workstations .. ?

8. tethereal in RHEL 4

9. samba: logon script

10. Samba, logon scripts and drive mapping

11. File Permission Changing when user edits file (Samba)

12. File/directory permissions and samba.conf

13. File Permissions & Samba