NT owner, ACL info?

Richard Sharpe sharpe at ns.aus.com
Thu Apr 16 03:01:22 GMT 1998


Hi Rob,

At 12:09 PM 4/16/98 +1000, you wrote:
>Does the SMB (or CIFS) protocol define some way of
>querying an NT server on the owner and ACLs of a
>particular file?

I asked similar questions with respect to Creation time, mod time and
access time recently.

>If 'yes', does Samba implement the client side code
>to fetch this info anywhere?
>
>I am interested in extending smbclient's tar
>capability to store and restore this info using a
>method similar to the way GNU long file names are
>stored.
>
>Oh, and in case anyone missed it, I posted a patch
>to the 'samba' list that adds long filename restore
>capability to smbclient. I can repost it here if
>anyone wants. I did this to get NT backup/restore
>stuff working under Amanda.

I too added long file name support to Samba just recently. I have a copy of
your changes, but have not looked at them carefully. 

My feeling however, is that do_tarput needs to be rewritten. 

I would be interested in working with you on this, and since I have access
to the sources (as a member of the Samba team) we can get the changes in.

I am also interested in what you have done with Amanda. I am also the
author of SMBlib and it seems that SMBlib might be useful in such situations.

I have some more changes that I want to add. These include allowing the use
of regexec to specify what files to save to a tar file and what files to
restore.

I have long file name support incorporated into samba-1.9.18p5, and have
the regex stuff working when creating a tar file, but only for Linux so
far. I have yet to test other systems, and am concerned that not all of
them will support regex.h, regcomp and regexec.

>I also would like to submit a patch to smbclient
>that puts quotes around the filenames returned by
>'ls' and 'dir'. Currently there is no easy way for
>scripts to parse the output of these commands. Any
>problems with this? Will it break anything?

Hmmm, this sounds useful ... Can you send it over ...

>-Rob
>-- 
>Rob Riggs                        Devil's Thumb Entertainment
>Network Administrator            Boulder, CO - (303) 938-1200
>rob at DevilsThumb.COM              http://www.DevilsThumb.COM/~rob
>"The notion of errors is ill-defined." - IRIX 'netstat' man page
>

Regards
-------
Richard Sharpe, sharpe at ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L, 
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080, 
Linux, AIX, Digital UNIX, ULTRIX, SunOS, Samba, Apache, NetScape, ICSS,
Perl, C, C++ ...


More information about the samba-technical mailing list