diff usr/src/cmd/passwd/passwd.c @ 13475:f6cca4323de0

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>
author John Sonnenschein <johns@joyent.com>
date Sun, 02 Oct 2011 03:36:04 -0400
parents ff6e80260186
children 9178198c46b5
line wrap: on
line diff
--- a/usr/src/cmd/passwd/passwd.c	Fri Sep 30 03:53:50 2011 -0700
+++ b/usr/src/cmd/passwd/passwd.c	Sun Oct 02 03:36:04 2011 -0400
@@ -1066,14 +1066,6 @@
 			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);