summaryrefslogtreecommitdiff
path: root/usr/src/cmd
diff options
context:
space:
mode:
authorJohn Sonnenschein <johns@joyent.com>2011-10-02 03:36:04 -0400
committerJohn Sonnenschein <johns@joyent.com>2011-10-02 03:36:04 -0400
commitaf8dc4373b25cce2c0bbb80f24e791f99eccbb6f (patch)
tree192c426ad7350d82d96cca97557a925c8203b74c /usr/src/cmd
parentdab7de2d0395d3b5e8dc742f164561b3840dd8c6 (diff)
downloadillumos-joyent-af8dc4373b25cce2c0bbb80f24e791f99eccbb6f.tar.gz
1556 no reason why passwd -e should be disallowed on FILES repo
Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd')
-rw-r--r--usr/src/cmd/passwd/passwd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/src/cmd/passwd/passwd.c b/usr/src/cmd/passwd/passwd.c
index e155f357f1..851de6f237 100644
--- a/usr/src/cmd/passwd/passwd.c
+++ b/usr/src/cmd/passwd/passwd.c
@@ -1066,14 +1066,6 @@ ckarg(int argc, char **argv, attrlist **attributes)
if (repository.type == NULL)
repository = __REPFILES;
- /*
- * Only privileged process can execute this
- * for FILES
- */
- if (IS_FILES(repository) && (ckuid() != SUCCESS)) {
- retval = NOPERM;
- return (FAIL);
- }
if (flag & (EFLAG|SAFLAG|AGEFLAG)) {
retval = BADOPT;
return (FAIL);