O'Reilly, Fintan
2002-Sep-24 09:46 UTC
[Samba] Changing file permissions from the command line
Hi, I run Samba 2.2.3a (Solaris 7) in domain authentication mode in a Windows 2000 domain. I would like to be able to script file permissions changes from the Windows side using a command line utility, e.g. cacls, however I have only been successful in changing the UNIX world permisssions, not owner and group. A summary follows. Has anyone come across a solution for this? Thanks, Fintan --- Summary --- UNIX: TEST:uw0425$ ls -ald test UNIX: drwx------ 2 oreillyf techenv 512 Sep 23 12:07 test WIN_2K: F:\>cacls test WIN_2K: F:\test Everyone:(special access:) WIN_2K: WRITE_OWNER WIN_2K: WIN_2K: <Account Domain not found>F WIN_2K: <Account Domain not found>F WIN_2K: <Account Domain not found>(OI)(CI)(IO)F WIN_2K: <Account Domain not found>(OI)(CI)(IO)(special access:) WIN_2K: READ_CONTROL WIN_2K: SYNCHRONIZE WIN_2K: FILE_GENERIC_READ WIN_2K: FILE_READ_DATA WIN_2K: FILE_READ_EA WIN_2K: FILE_READ_ATTRIBUTES WIN_2K: WIN_2K: Everyone:(OI)(CI)(IO)(special access:) WIN_2K: READ_CONTROL WIN_2K: SYNCHRONIZE WIN_2K: FILE_GENERIC_READ WIN_2K: FILE_READ_DATA WIN_2K: FILE_READ_EA WIN_2K: FILE_READ_ATTRIBUTES WIN_2K: F:\>cacls test /E /G Everyone:f WIN_2K: processed dir: F:\test UNIX: TEST:uw0425$ ls -ald test UNIX: drwx---rwx 2 oreillyf techenv 512 Sep 23 12:07 test WIN_2K: F:\>cacls test WIN_2K: F:\test <Account Domain not found>(special access:) WIN_2K: WRITE_OWNER WIN_2K: WIN_2K: <Account Domain not found>F WIN_2K: Everyone:F WIN_2K: <Account Domain not found>(OI)(CI)(IO)F WIN_2K: <Account Domain not found>(OI)(CI)(IO)(special access:) WIN_2K: READ_CONTROL WIN_2K: SYNCHRONIZE WIN_2K: FILE_GENERIC_READ WIN_2K: FILE_READ_DATA WIN_2K: FILE_READ_EA WIN_2K: FILE_READ_ATTRIBUTES WIN_2K: WIN_2K: Everyone:(OI)(CI)(IO)(special access:) WIN_2K: READ_CONTROL WIN_2K: SYNCHRONIZE WIN_2K: FILE_GENERIC_READ WIN_2K: FILE_READ_DATA WIN_2K: FILE_READ_EA WIN_2K: FILE_READ_ATTRIBUTES --- End of Summary --- PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange.