> On Mon, 20 Aug 2001 19:27:40 GMT,
> >On 20 Aug 2001 11:45:29 GMT, Villy Kruse
> >> The question is rather, what program did modify the permission of /dev/null?
> >> That program should probably be fixed so it no longer does that.
> >If it is a program that did this (nmap from what I understand - although I
> >don't have any troubles with nmap) and not a careless user logged in as root
> >(no offence).
> Could be an output file you have specified as a real file, but the OP has
> specified as /dev/null. If the program has the idea that this file should
> be root accessible only then it might chmod the output file. Cases like
> this is not unheard of.
> The careless part might be a recursive chown gone wild, but then I would
> suspect much more damage done in the /dev directory.
> Villy
> On Mon, 20 Aug 2001 19:27:40 GMT,
> >On 20 Aug 2001 11:45:29 GMT, Villy Kruse
> >> The question is rather, what program did modify the permission of /dev/null?
> >> That program should probably be fixed so it no longer does that.
> >If it is a program that did this (nmap from what I understand - although I
> >don't have any troubles with nmap) and not a careless user logged in as root
> >(no offence).
> Could be an output file you have specified as a real file, but the OP has
> specified as /dev/null. If the program has the idea that this file should
> be root accessible only then it might chmod the output file. Cases like
> this is not unheard of.
> The careless part might be a recursive chown gone wild, but then I would
> suspect much more damage done in the /dev directory.
> Villy
I was the one made the original posting and lookie what I found. I was reading
through a book Red Hat? Linux? 7 Server by Mohammed J. Kabir ISBN 0-7645-4786-0 at
Barnes & Noble and I ended up buying it. I think it's a good reference...
In chapter 4: Understanding UNIX files and Devices says, if something that was
working yesterday and day before yesterday all of a sudden stops working today, the
first suspect is permission problem. One of the most common causes of permission
problem is that after using Mr. Superuser 'root' account. Many of inexperienced
superusers like me often access files and run programs using Mr. Superuser 'root'
account. When a program is run using 'root 'as user account, the files that such
program creates can often be set with root ownership. Mr. Nobody user logins and
he can't access the file because Mr. Superuser 'root' already owns it.
I've been using UNIX for almost 10 years as non root I didn't even know that.