summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2001-02-28Ooops - forgot to check the rpcclient and smbcacls compile with the newJeremy Allison1-22/+18
code :-(. Jeremy. (This used to be commit 70beabf73bdaad7b6a60e24b7a11798a411bed02)
2001-02-27better handling of '.'Andrew Tridgell1-15/+17
better verbose print (This used to be commit 1f8b8a7189fb8c142801d679cf53c586aee74740)
2001-02-27remove some test codeAndrew Tridgell1-1/+2
(This used to be commit 2c509c9860fdcf4d2b3bb35e12f9fedbb77bd17e)
2001-02-27almost there with lanman1 wildcards. We now seem to correctly handleAndrew Tridgell1-4/+17
'<', '>', '"' and '?' when combined with '.'. The '*' character is proving troublesome. (This used to be commit 0a55d9a17b5d98c7e151bb2ee014cfb0b3660400)
2001-02-27I have now found that despite initial appearences the lanman1 wildcardAndrew Tridgell1-35/+24
algorithm does *not* match separately on base and extension. I also added a -v option to masktest for verbose output (This used to be commit 76c8fa5cd1ce9095583f818d100cd0f2116ddc62)
2001-02-26made some LANMAN1 wildcard progressAndrew Tridgell1-6/+7
it now handles -M LANMAN1 -f '.x' -m '?x' nicely (This used to be commit e7ccb9be6da9b1426eb136b4a0a1171232471768)
2001-02-26made some progress in masktestAndrew Tridgell1-16/+15
it now handles the server renaming files on create (This used to be commit 85ce14f36da4f5a3fb3029634279bb473873bbd5)
2001-02-25a snapshot of my attempts to get wildcard matching right for LANMAN1Andrew Tridgell1-10/+108
clients. This is not complete and not correct - expect some more work on this soon (This used to be commit 06d158d5e91a222e6bf8d22f02107c60da383f82)
2001-02-23make sure denied aces are firstAndrew Tridgell1-1/+1
(This used to be commit b0b49a4b28891f3e2ec8e8e221af713250cc8e17)
2001-02-23cast the qsortAndrew Tridgell1-1/+1
(This used to be commit 703d9f5cb32ca4131051c50646fd833fb1ae7d76)
2001-02-23- fixed the sort_acl bug, sorting now works rightAndrew Tridgell1-45/+32
- don't allow setting of duplicate ACEs - fixed a ACE delete bug (This used to be commit 61293979ce2aded58a5ef2a54b3b05d1d278f7cf)
2001-02-22don't crash on null acl sortAndrew Tridgell1-0/+2
(This used to be commit 59341377413fcbf30c090a3763608d23ac2bff95)
2001-02-22fixed character set init in smbw_sampleAndrew Tridgell1-0/+2
(This used to be commit c43593ad069670fb47b8e98248254c739bb7ab18)
2001-02-22- workaround filer lsa lookup bug for unknown sidsAndrew Tridgell1-11/+10
- add \ at start of name if not needed (another filer workaround) (This used to be commit 48ab6297a1b462e03f70a4d90d50b21982d0d90d)
2001-02-22cope with filer/NT/samba all in one binary. yeah.Andrew Tridgell1-7/+35
we now don't open rw for acls (This used to be commit c0f57c3fe636c5a5885c6b2ed4723252597533eb)
2001-02-21fixed a crash bug in smbpasswdAndrew Tridgell1-1/+0
(the user can come from optarg, so we can't free it) (This used to be commit 56ffb58effe80f7c62a9de6ba4f634d995fbc4e6)
2001-02-20don't need _uni hack nowAndrew Tridgell1-30/+6
(This used to be commit f191271986d085cc73b62c8d3de8ab7b326c19c0)
2001-02-20playing with CAP_NT_SMBSAndrew Tridgell1-2/+2
(This used to be commit 3eff509a65d164d66eb70f51ef115acd7328266c)
2001-02-12Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison1-19/+32
updated the POSIX_ACL code to be in sync. Jeremy. (This used to be commit c0517d6f4e3079feca1309fd1ea7b21e83f0de02)
2001-01-23Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()Tim Potter1-1/+5
but NT sends 0x2000000 so we might as well do it too. (This used to be commit 394e17645b777be767cd1c69be3f5efe7a703d85)
2001-01-11Changes from APPLIANCE_HEAD:David O'Neill1-2/+9
source/lib/smbpasswd.c - Only call load_interfaces() when doing a network related operation. This means you can add, remove, enable or disable smbpasswd entries without a network. Changing passwords always requires a network. (This used to be commit e2193c3a360562dd66a16c8f23f8cf3eed20b8cf)
2001-01-05Needed a callback arg on cli_list ...Richard Sharpe2-8/+8
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
2001-01-04I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I hadRichard Sharpe1-3/+3
to modifiy any routine that calls it to pass NULL and so forth. Should have no impact. It compiles OK. (This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
2000-12-21Return appropriate exit codes for various situations:Tim Potter1-22/+32
0 for success 1 if operation failed 2 command line parse error (This used to be commit b4773618acb60b62b20b01ff7ba749984c1379fb)
2000-12-21Don't call string_to_sid after cli_lsa_lookup_names() fails.Tim Potter1-2/+55
Can't use space as a ACL separator as it breaks NT user/group names that contain spaces (i.e most of the default ones). The MSDN is contradictory over the exact ordering of ACE entries in an ACL. However NT4 gives a "The information may have been modified by a computer running Windows NT 5.0" if denied ACEs do not appear before allowed ACEs. Sort ACE list before calling cli_set_secdesc(). (This used to be commit 01a89978ff4b9fcc813c4f251ddfe23c0485a696)
2000-12-21Some systems seem to only accept a ntcreate&x with a unicode filenameTim Potter1-5/+45
despite samba negotiating ascii filenames. Retry with unicode pathnames if the ascii version fails. Convert all forward slashes to backslashes in the filename argument. (This used to be commit 935b77573ec82bece6211a9f61c800ef1c8c9aa4)
2000-12-21Cleaned up SidToString() and StringToSid() exit paths.Tim Potter1-17/+27
Can now use user%password format in $USER environment variable. -U option is now optional. (This used to be commit e21f2ef4fbfae1451d77b53291a78646dee9cfce)
2000-12-20implemented a much nicer name_status() interface. It now returns aAndrew Tridgell1-6/+51
list of structures rather than the dodgy parsing code we had before this also gets smbw working correctly with no initial workgroup (using name_status_find on __MSBROWSE__ returns) (This used to be commit f2be88a8738a39ca5c98936edb7537cd701348a1)
2000-12-16Added -C username and -G username that allow a user (usually Administrator)Jeremy Allison1-5/+61
to change the ownership or group ownership of a file to any arbitrary user from the UNIX command line. This will show the people who quote NT manuals at us about how this is "impossible" how their operating system really works :-). Jeremy. (This used to be commit 12f88c9ba731bdded626b9d011cfc8d2ba09010e)
2000-12-15Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2-8/+25
in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy. (This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
2000-12-14Renamed parameters and variables called acl to the_acl as it conflictsTim Potter1-18/+18
with a Solaris system call. (This used to be commit 5e547ddcb526be5562db9213c5b36e505e735a2e)
2000-12-14Cache lsa connection and policy handle for resolving names and sids.Tim Potter1-48/+56
(This used to be commit 09d2d972fd6f70bdf62f25936494968ef597b98b)
2000-12-13Convert names to sids when modifying ACLs. Convert sids to names whenTim Potter1-10/+68
displaying ACLs. (This used to be commit 5001bbc64be62af1597eb334e5b530b415d62a6b)
2000-12-12Don't print out the security descriptor type as it is automaticallyTim Potter1-7/+1
calculated by the new make_sec_desc() function. (This used to be commit 6fd5dc81458317e106f5ea24958cefe4146c90a6)
2000-12-12Better error checking for ACL parsing.Tim Potter1-7/+21
Print an error when attempting to delete a non-existent ACL. (This used to be commit d119782d0d8d2738650da47fa11134d26134ce17)
2000-12-11Fixed very subtle bug returning correct error on an open, when we haveJeremy Allison1-2/+69
a choice of invalid share mode and access denied. We must return the access denied by preference, but also remember to break the oplocks... This is needed for multi-user MS-Access. Jeremy. (This used to be commit 7eb7241442ea0f1e065b009c3cccd5821b89a8b6)
2000-12-07Added undocumented -t command for testing parsing of acl entries.Tim Potter1-11/+118
Print out hex value for ace mask if we can't decode it. We can now parse FULL,CHANGE,READ as well as combos of RWXDPO as ace mask values. Clarified usage message. Bomb out if excess args are given. (This used to be commit ed5bda119a984e124d24f168db15e15da62ceaa5)
2000-12-06added passdb editor (rough form with a few bugs) Should workGerald Carter1-0/+692
with all backends. --jerry (This used to be commit fc43c63f481cdf22c3515cc0f0d744c662b4f83d)
2000-12-04added a commentAndrew Tridgell1-0/+2
(This used to be commit 032442802f73948e3af2c86fee0d58f82e47f673)
2000-12-04fixed the parsing again and got setting acls working with w2kAndrew Tridgell1-3/+3
(This used to be commit 374d08be6443738d6a450801866fd6e046322e2c)
2000-12-04Added some cli_errstr() calls.Tim Potter1-4/+4
(This used to be commit faaa71a032bc27d073c39da42fc2928ea3226698)
2000-12-04Removed lsa lookup warnings (I'll remember).Tim Potter1-4/+19
Print an error if -M refers to a non-existent ACL. (This used to be commit ee6f5a9672795c884cabe80e98e5b0fb3c793539)
2000-12-04fixed setting ACLs on directoriesAndrew Tridgell1-2/+2
(This used to be commit 117956ecb1878f09708a5dc76ec81ad3cfa8d809)
2000-12-04Mask value now displayed as READ/CHANGE/FULL for standard permissions, orTim Potter1-27/+66
RWXDPO for special permissions. Append 0x to values printed as hex. Spruced up the help message. (This used to be commit 8a20318c5626f7328fd911144c54fe92426532c5)
2000-12-04removed SACL support (as it doesn't work with w2k if you ask forAndrew Tridgell1-52/+7
SACLs) (This used to be commit 52b27d75e12eeeb52b3a93952900809c2ee0b992)
2000-12-04signed/unsigned warning fixedAndrew Tridgell1-2/+3
(This used to be commit 71adecd163b13169d359b69f61e8e70e2f140277)
2000-12-04fixed acls set bugAndrew Tridgell1-13/+18
(This used to be commit 44524958ed3a0d56b0504b044bf640ceffebb704)
2000-12-04fixed SACL bugAndrew Tridgell1-8/+3
(This used to be commit 077ee4a7ac7fa8f274269bfc5130d5abff9f35e0)
2000-12-04- with -D only delete first matchAndrew Tridgell1-12/+23
- fixed delete bug (This used to be commit 1e0d5f069592ebce58c35e95b0dcdbc5516dd268)
2000-12-03- added helpAndrew Tridgell1-12/+118
- added add/modify/delete/set as separate operations (This used to be commit cb324b53c61ee7e4bf0aa5d1fb773672a2674c0f)