On 09/01/06, Steve Langasek <[EMAIL PROTECTED]> wrote:
> On Sun, Jan 08, 2006 at 06:30:44PM +0000, George B. wrote:
> > Package: samba
> > Version: 3.0.20b-4
> > Severity: normal
>
> > I run the 'smbpasswd -L' to see what it did and I got a segfault. The
> > panic email asked me to submit a report, so here it is.
>
> Technically not a segfault; it's a bug in the mail script that it tells you
> it is.  This is an assertion failure instead.
>
> > The secrets.tdb file has permissions 600, but the smbpasswd help text
> > implies the -L option can be used by non-root users?
>
> What part of the help text implies this to you?  Everything I see merely
> states that the -L option exists, it doesn't say who's allowed to use it.

This is the help text:

---
[EMAIL PROTECTED]:~$ smbpasswd -h
When run by root:
   smbpasswd [options] [username]
otherwise:
   smbpasswd [options]

options:
 -L                   local mode (must be first option)
 -h                   print this usage message
 -s                   use stdin for password prompt
 -c smb.conf file     Use the given path to the smb.conf file
 -D LEVEL             debug level
 -r MACHINE           remote machine
 -U USER              remote username
extra options when run by root or in local mode:
 -a                   add user
 -d                   disable user
 -e                   enable user
 -i                   interdomain trust account
 -m                   machine trust account
 -n                   set no password
 -w PASSWORD          ldap admin password
 -x                   delete user
 -R ORDER             name resolve order
---

Because the -L option is listed above the "extra options when run by
root" when I glanced over the text I was left with the impression that
root was not necessary for -L, regardless of whether or not the
impression was justified.


HTH,

George.

Reply via email to