9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Poorly created user
@ 2008-11-06 20:12 akumar
  2008-11-06 20:10 ` erik quanstrom
  0 siblings, 1 reply; 7+ messages in thread
From: akumar @ 2008-11-06 20:12 UTC (permalink / raw)
  To: 9fans

Hello,
A while back I created a user by the normal procedure of adding it to
the FS and running auth/changeuser, then logging in as the user and
running /sys/lib/newuser.  However, it turns out that all the files
created for the user had awkward permissions on them -- specifically,
the group and user attributes of every file for the user were not
precisely of that users.  Here's an example of the user's cron DIR:

d-rwxr-xr-x M 2225 (user) (user) 0 Oct 28 13:15 /cron/user
(notice theparentheses)

the same is with the case of the user's home DIR (and files within) as
well as mail box DIR, etc., etc..  The result of this is that the user
itself can't access any such files or DIRs!  It has access to none of
its own stuff.  I'm not sure where I (hostowner) could have gone wrong
with this, perhaps some part of changeuser or adding the user to the
FS? Anyways, currently, I've disabled the user account and would like
to remove the user's cron, mail box, etc.  files and DIRs from fossil,
for purposes of organisation, but I'm (i.e., hostowner) unable to do
any of that either, due to permissions.  So, perhaps someone could
lead me to the right direction in either restoring the user account or
being able to remove all these "garbage-owner/group" files (from
fossil)?

Regards




^ permalink raw reply	[flat|nested] 7+ messages in thread
* [9fans] Poorly created user
@ 2008-11-06 20:47 akumar
  2008-11-06 22:58 ` Steve Simon
  0 siblings, 1 reply; 7+ messages in thread
From: akumar @ 2008-11-06 20:47 UTC (permalink / raw)
  To: 9fans

Erik,

Taking your advice, I tried connecting to fscons and running:
  uname user user
however, the fs reports:
  uname: uname 'user' already exists
is this what you meant to try in your previous post, or have I
misunderstood?

Thanks




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [9fans] Poorly created user
@ 2008-11-06 21:11 erik quanstrom
  0 siblings, 0 replies; 7+ messages in thread
From: erik quanstrom @ 2008-11-06 21:11 UTC (permalink / raw)
  To: akumar, 9fans

On Thu Nov  6 15:49:03 EST 2008, akumar@sounine.nanosouffle.net wrote:
> Erik,
>
> Taking your advice, I tried connecting to fscons and running:
>   uname user user
> however, the fs reports:
>   uname: uname 'user' already exists
> is this what you meant to try in your previous post, or have I
> misunderstood?
>
> Thanks

i think something is amiss.  using a temporary file instead of /dev/sdC0/fossil,
i followed the example in fossil(4).  then on the console i created a user "bad"

	main: create junk sys sys d777
	main: uname bad bad

then i mounted the fossil and created junk/bad
	; touch bad; chgrp -u bad bad; chgrp bad bad
	; ls -l
	--rw-rw-rw- M 13950 bad bad 0 Nov  6 16:02 bad

then on the fossil console
	main: users -d
		nuser 5 len 84

then back on plan 9:
	; ls -l
	--rw-rw-rw- M 13950 (bad) (bad) 0 Nov  6 16:02 bad

i can lather, rince and repeat this process.  i have no idea what
could be wrong in your case.  regardless, if you turn auth off,
(-A), you will be god and can nuke anything.

- erik



^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <52dd93f6098d668ada48e9541e7308af@quanstro.net>]
[parent not found: <3373734608927206e6f52884b0c12b13@quanstro.net>]

end of thread, other threads:[~2008-11-06 23:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 20:12 [9fans] Poorly created user akumar
2008-11-06 20:10 ` erik quanstrom
2008-11-06 20:47 akumar
2008-11-06 22:58 ` Steve Simon
2008-11-06 21:11 erik quanstrom
     [not found] <52dd93f6098d668ada48e9541e7308af@quanstro.net>
2008-11-06 22:18 ` akumar
     [not found] <3373734608927206e6f52884b0c12b13@quanstro.net>
2008-11-06 23:39 ` akumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).