Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2008 07:11:29 -0700
From:      James <oscartheduck@gmail.com>
To:        Bill Moran <wmoran@potentialtech.com>
Cc:        Lubomir Matousek <lubos.matousek@lubnet.net>, freebsd-questions@freebsd.org
Subject:   Re: (no subject) rmuser error
Message-ID:  <1203257489.5760.3.camel@pclmills>
In-Reply-To: <20080216120406.f4f80c07.wmoran@potentialtech.com>
References:  <000a01c87073$9da5fc30$d8f1f490$@net> <1203178935.6099.1.camel@pclmills> <20080216120406.f4f80c07.wmoran@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 2008-02-16 at 12:04 -0500, Bill Moran wrote:
> James <oscartheduck@gmail.com> wrote:
> >
> > 
> > On Sat, 2008-02-16 at 09:11 +0100, Lubomir Matousek wrote:
> > > Dear list, 
> > > 
> > >  
> > > 
> > > I have the following problem when using rmuser (freebsd 6.2)
> > > 
> > >  
> > > 
> > > ----------
> > > 
> > > rmuser -v hana
		^^^^ says hana
> > > 
> > > Matching password entry:
> > > 
> > >  
> > > 
> > > hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin
      ^^^^ says hana                 ^^^^^ says /usr/home/hana

> > > 
> > >  
> > > 
> > > Is this the entry you wish to remove? yes Remove user's home directory
> > > (/usr/home/hanka)? yes Removing crontab for (hana):.
                 ^^^^^ Notice that the username has been changed --
there's a k inserted. The kernel error is "no such file or directory",
which makes sense, as we have seen no references thus far to a directory
named hanka.



> > > 
> > > Removing at(1) jobs owned by (hana): 0 removed.
> > > 
> > > Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file or
> > > directory
> > > 
> > > ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
> > > 
> > > ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory .
> > > 
> > > Terminating all processes owned by (hana): -KILL signal sent to 0 processes.
> > > 
> > > Removing files owned by (hana) in /tmp: 0 removed.
> > > 
> > > Removing files owned by (hana) in /var/tmp: 0 removed.
> > > 
> > > Removing mail spool(s) for (hana): /var/mail/hana.
> > > 
> > > Removing user (hana) (including home directory) from the system: Done.
> > > 
> > > -----------
> > > 
> > >  
> > > 
> > > The problem started, when I accidentaly deleted /usr/home directory and I
> > > had to create a new one. I checked /etc/password file and the direcory
> > > existed before using rmuser. Can anybody help please?

As I said, /etc/passwd is generated from /etc/master.passwd. So make
sure there's no extra k in there.


> > > 
> > >  
> > > 
> > > 
> > > 
> > > Lubos
> > 
> > 
> > Looks like the problem is that somewhere within there it's expected that
> > the home directory isn't /usr/home/hana, it's /usr/home/hanka
> > 
> > Have you checked /etc/master.passwd to make sure that there's no
> > mis-entry in there? Or just try creating /usr/home/hanka and see if it
> > works itself out.
> 
> Personally, I'm unsure where the "problem" is.  The only suspicious thing
> I see is the inability to remove shared memory segments, which is a bit
> strange but not wholly unexpected.  Did you build a kernel without shared
> memory?
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1203257489.5760.3.camel>