summaryrefslogtreecommitdiffstats
path: root/source3/utils/smbcacls.c
Commit message (Collapse)AuthorAgeFilesLines
...
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
* it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell2001-09-041-7/+6
| | | | | | the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-3/+3
| | | | (This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
* fixed handling of 139/445 in clientsAndrew Tridgell2001-08-241-2/+1
| | | | (This used to be commit 22b372f8a7996a19bebb8cdb411df999cffa32a4)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-5/+5
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* The big character set handling changeover!Andrew Tridgell2001-07-041-2/+0
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Removed bogus server_n local variable in connect_one() function.Tim Potter2001-07-041-5/+2
| | | | (This used to be commit 69d90a8af167d53ebdb6d7aeef41b28b672288d1)
* Added some missing entries to usage().Tim Potter2001-06-271-1/+7
| | | | | Added -d option to set debug level. (This used to be commit 9874df0c2242ee46182744eabae14829c3b5f21e)
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-2/+2
| | | | | | | | | | but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour (This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
* Warning fix from Andrew Bartlett.Jeremy Allison2001-06-201-1/+1
| | | | | Jeremy. (This used to be commit 87f647715d9fba9f8d25da0bde005a8d8858c2ae)
* rpc_server/srv_srvsvc_nt.c: Don't test an uint32 for < 0.Jeremy Allison2001-06-191-1/+1
| | | | | | utils/smbcacls.c: Set enum correctly. Jeremy. (This used to be commit 66f959e0ffb0cd385167a34c7db3f4959eaf1d7f)
* Fixup smbcacls. Don't return memory already freed, don't free memory allocatedJeremy Allison2001-05-011-10/+3
| | | | | | with talloc. Jeremy. (This used to be commit 0ae0d024f5898f7e47e4b1d4487b15447096780c)
* fixed some uninitialised variablesAndrew Tridgell2001-05-011-1/+1
| | | | (This used to be commit 5d899e51a4fc4e872da550b88ef603dbd2d8391f)
* rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter2001-04-281-3/+3
| | | | (This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-7/+4
| | | | | Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
* Added SMB_ prefix to enums that clash with Solaris ACL definitions.Jeremy Allison2001-04-111-9/+9
| | | | | Jeremy. (This used to be commit 493d2c316a9e80de0239ef3a6f0b3f4ec9ac6e13)
* Ooops - forgot to check the rpcclient and smbcacls compile with the newJeremy Allison2001-02-281-22/+18
| | | | | | code :-(. Jeremy. (This used to be commit 70beabf73bdaad7b6a60e24b7a11798a411bed02)
* make sure denied aces are firstAndrew Tridgell2001-02-231-1/+1
| | | | (This used to be commit b0b49a4b28891f3e2ec8e8e221af713250cc8e17)
* cast the qsortAndrew Tridgell2001-02-231-1/+1
| | | | (This used to be commit 703d9f5cb32ca4131051c50646fd833fb1ae7d76)
* - fixed the sort_acl bug, sorting now works rightAndrew Tridgell2001-02-231-45/+32
| | | | | | - don't allow setting of duplicate ACEs - fixed a ACE delete bug (This used to be commit 61293979ce2aded58a5ef2a54b3b05d1d278f7cf)
* don't crash on null acl sortAndrew Tridgell2001-02-221-0/+2
| | | | (This used to be commit 59341377413fcbf30c090a3763608d23ac2bff95)
* - workaround filer lsa lookup bug for unknown sidsAndrew Tridgell2001-02-221-11/+10
| | | | | - add \ at start of name if not needed (another filer workaround) (This used to be commit 48ab6297a1b462e03f70a4d90d50b21982d0d90d)
* cope with filer/NT/samba all in one binary. yeah.Andrew Tridgell2001-02-221-7/+35
| | | | | we now don't open rw for acls (This used to be commit c0f57c3fe636c5a5885c6b2ed4723252597533eb)
* don't need _uni hack nowAndrew Tridgell2001-02-201-30/+6
| | | | (This used to be commit f191271986d085cc73b62c8d3de8ab7b326c19c0)
* Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()Tim Potter2001-01-231-1/+5
| | | | | but NT sends 0x2000000 so we might as well do it too. (This used to be commit 394e17645b777be767cd1c69be3f5efe7a703d85)
* Return appropriate exit codes for various situations:Tim Potter2000-12-211-22/+32
| | | | | | | 0 for success 1 if operation failed 2 command line parse error (This used to be commit b4773618acb60b62b20b01ff7ba749984c1379fb)
* Don't call string_to_sid after cli_lsa_lookup_names() fails.Tim Potter2000-12-211-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)
* Some systems seem to only accept a ntcreate&x with a unicode filenameTim Potter2000-12-211-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)
* Cleaned up SidToString() and StringToSid() exit paths.Tim Potter2000-12-211-17/+27
| | | | | | Can now use user%password format in $USER environment variable. -U option is now optional. (This used to be commit e21f2ef4fbfae1451d77b53291a78646dee9cfce)
* Added -C username and -G username that allow a user (usually Administrator)Jeremy Allison2000-12-161-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)
* Fixed memory leaks in lsa_XX calls. Fixed memory leaks in smbcacls. MergedJeremy Allison2000-12-151-7/+17
| | | | | | | in fixes from appliance-head and 2.2. Fixed multiple connection.tdb open problem. Jeremy. (This used to be commit 0a40bc83e14c69a09948ec09bb6fc5026c4f4c14)
* Renamed parameters and variables called acl to the_acl as it conflictsTim Potter2000-12-141-18/+18
| | | | | with a Solaris system call. (This used to be commit 5e547ddcb526be5562db9213c5b36e505e735a2e)
* Cache lsa connection and policy handle for resolving names and sids.Tim Potter2000-12-141-48/+56
| | | | (This used to be commit 09d2d972fd6f70bdf62f25936494968ef597b98b)
* Convert names to sids when modifying ACLs. Convert sids to names whenTim Potter2000-12-131-10/+68
| | | | | displaying ACLs. (This used to be commit 5001bbc64be62af1597eb334e5b530b415d62a6b)
* Don't print out the security descriptor type as it is automaticallyTim Potter2000-12-121-7/+1
| | | | | calculated by the new make_sec_desc() function. (This used to be commit 6fd5dc81458317e106f5ea24958cefe4146c90a6)
* Better error checking for ACL parsing.Tim Potter2000-12-121-7/+21
| | | | | Print an error when attempting to delete a non-existent ACL. (This used to be commit d119782d0d8d2738650da47fa11134d26134ce17)
* Added undocumented -t command for testing parsing of acl entries.Tim Potter2000-12-071-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)
* added a commentAndrew Tridgell2000-12-041-0/+2
| | | | (This used to be commit 032442802f73948e3af2c86fee0d58f82e47f673)
* fixed the parsing again and got setting acls working with w2kAndrew Tridgell2000-12-041-3/+3
| | | | (This used to be commit 374d08be6443738d6a450801866fd6e046322e2c)
* Added some cli_errstr() calls.Tim Potter2000-12-041-4/+4
| | | | (This used to be commit faaa71a032bc27d073c39da42fc2928ea3226698)
* Removed lsa lookup warnings (I'll remember).Tim Potter2000-12-041-4/+19
| | | | | Print an error if -M refers to a non-existent ACL. (This used to be commit ee6f5a9672795c884cabe80e98e5b0fb3c793539)
* fixed setting ACLs on directoriesAndrew Tridgell2000-12-041-2/+2
| | | | (This used to be commit 117956ecb1878f09708a5dc76ec81ad3cfa8d809)
* Mask value now displayed as READ/CHANGE/FULL for standard permissions, orTim Potter2000-12-041-27/+66
| | | | | | | | | RWXDPO for special permissions. Append 0x to values printed as hex. Spruced up the help message. (This used to be commit 8a20318c5626f7328fd911144c54fe92426532c5)
* removed SACL support (as it doesn't work with w2k if you ask forAndrew Tridgell2000-12-041-52/+7
| | | | | SACLs) (This used to be commit 52b27d75e12eeeb52b3a93952900809c2ee0b992)
* signed/unsigned warning fixedAndrew Tridgell2000-12-041-2/+3
| | | | (This used to be commit 71adecd163b13169d359b69f61e8e70e2f140277)
* fixed acls set bugAndrew Tridgell2000-12-041-13/+18
| | | | (This used to be commit 44524958ed3a0d56b0504b044bf640ceffebb704)
* fixed SACL bugAndrew Tridgell2000-12-041-8/+3
| | | | (This used to be commit 077ee4a7ac7fa8f274269bfc5130d5abff9f35e0)
* - with -D only delete first matchAndrew Tridgell2000-12-041-12/+23
| | | | | - fixed delete bug (This used to be commit 1e0d5f069592ebce58c35e95b0dcdbc5516dd268)
* - added helpAndrew Tridgell2000-12-031-12/+118
| | | | | - added add/modify/delete/set as separate operations (This used to be commit cb324b53c61ee7e4bf0aa5d1fb773672a2674c0f)
* cleaner parsing and default handlingAndrew Tridgell2000-12-031-17/+22
| | | | (This used to be commit f8dbd2b799545a8e1e33eceb6739b5b606cdc4b9)