diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 01:52:34 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 01:52:34 +0000 |
commit | 2fc8e32ad342e3285e0d30a3a102e06ec4af5199 (patch) | |
tree | 201cb208c4914214860575ffb07b2a50c9f678c7 /source3/utils | |
parent | 1f829e19eb3b81ad1c4451fe9a90617e6cee7dd7 (diff) | |
download | samba-2fc8e32ad342e3285e0d30a3a102e06ec4af5199.tar.gz samba-2fc8e32ad342e3285e0d30a3a102e06ec4af5199.tar.bz2 samba-2fc8e32ad342e3285e0d30a3a102e06ec4af5199.zip |
Parionia to ensure people don't install libsmb based programs setuid root.
libsmb has not been written to be setuid, with things like LIBSMB_PROG allowing
all sort of fun and games.
Andrew Bartlett
(This used to be commit 0c8e9339d8238de92e9146d04091694b62874c33)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 6a330812e1..ee8bae7a4a 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -933,7 +933,7 @@ int main(int argc, char **argv) strupper(global_myname); /* Check the effective uid - make sure we are not setuid */ - if ((geteuid() == (uid_t)0) && (getuid() != (uid_t)0)) { + if (is_setuid_root()) { fprintf(stderr, "smbpasswd must *NOT* be setuid root.\n"); exit(1); } |