Re: [Setup-tool-hackers] users-conf: Reading comments??
- From: SHANE BUTLER <sbutle deakin edu au>
- To: <arturo ximian com>
- Cc: xst <setup-tool-hackers ximian com>
- Subject: Re: [Setup-tool-hackers] users-conf: Reading comments??
- Date: Mon, 5 Mar 2001 11:42:23 +1100 (EST)
No, I do not want this to disable a user - that is not the problem. There
are other ways to do that.
Did you see my original message? (ie the attachments?) I have re-included
them with with this message.
sample-input.txt The sample /etc/passwd
sample-output.txt The XST output created by users-conf
They show the problem: MacOSX ships with this file by default, which uses
commenting.
>From my last message,
<snip>
Given this, there are several possible choices as to how we could possibly
detect something is up:
- Look for a first letter being a '#' (cave in ;P )
- If there are no seperators detected in a line
- If the system is detected to be 'powerpc-apple-macos10' (the system in
question), then use one of the above methods
</snip>
Please consider these, or offer other ideas.
Thanks,
Shane
--
Shane Butler <sbutle@deakin.edu.au>
On Sun, 4 Mar 2001, Arturo Espinosa Aldama wrote:
> On Sun, 4 Mar 2001, SHANE BUTLER wrote:
>
> > Arturo,
> >
> > I see where you are comming from, however these commands are acceptable:
> >
> > # useradd "a#bc"
> > # useradd "abc#"
> >
> > While this is not:
> >
> > # useradd "#abc"
> > adduser: invalid user name `#abc'
>
> What that means is that you can't create a user named #something, not that
> comments are supported in /etc/passwd. Do you have any documentation that
> positively states that comments are supported? If not, it is an
> undocumented feature, and I don't think it would be wise to support it.
>
> I suppose you want this to disable an user. Tambet: do we have user
> disabling supported? I think we really need that.
>
> Greetings,
> Arturo
>
>
>
<userdb>
<user>
<key>000000</key>
<login>##</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000001</key>
<login># User Database</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000002</key>
<login># </login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000003</key>
<login># Note that this file is consulted when the system is running in single-user</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000004</key>
<login># mode. At other times this information is handled by lookupd. By default,</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000005</key>
<login># lookupd gets information from NetInfo, so this file will not be consulted</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000006</key>
<login># unless you have changed lookupd's configuration.</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000007</key>
<login>##</login>
<password></password>
<uid></uid>
<gid></gid>
<comment></comment>
<home></home>
<shell></shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000008</key>
<login>unknown</login>
<password>*</password>
<uid>-3</uid>
<gid>-3</gid>
<comment>Unknown User</comment>
<home>/nohome</home>
<shell>/noshell</shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000009</key>
<login>nobody</login>
<password>*</password>
<uid>-2</uid>
<gid>-2</gid>
<comment>Unprivileged User</comment>
<home>/nohome</home>
<shell>/noshell</shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000010</key>
<login>root</login>
<password>*</password>
<uid>0</uid>
<gid>0</gid>
<comment>System Administrator</comment>
<home>/var/root</home>
<shell>/bin/tcsh</shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000011</key>
<login>daemon</login>
<password>*</password>
<uid>1</uid>
<gid>1</gid>
<comment>System Services</comment>
<home>/var/root</home>
<shell>/noshell</shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
<user>
<key>000012</key>
<login>www</login>
<password>*</password>
<uid>70</uid>
<gid>70</gid>
<comment>World Wide Web Server</comment>
<home>/Library/WebServer</home>
<shell>/noshell</shell>
<last_mod></last_mod>
<passwd_min_life></passwd_min_life>
<passwd_max_life></passwd_max_life>
<passwd_exp_warn></passwd_exp_warn>
<passwd_exp_disable></passwd_exp_disable>
<passwd_disable></passwd_disable>
<reserved></reserved>
<is_shadow></is_shadow>
</user>
</userdb>
##
# User Database
#
# Note that this file is consulted when the system is running in single-user
# mode. At other times this information is handled by lookupd. By default,
# lookupd gets information from NetInfo, so this file will not be consulted
# unless you have changed lookupd's configuration.
##
unknown:*:-3:-3:Unknown User:/nohome:/noshell
nobody:*:-2:-2:Unprivileged User:/nohome:/noshell
root:*:0:0:System Administrator:/var/root:/bin/tcsh
daemon:*:1:1:System Services:/var/root:/noshell
www:*:70:70:World Wide Web Server:/Library/WebServer:/noshell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]