[TAG] pppd changing file permissions (Was Re: lpr works for user not root in Basiclinux 2.1)
sindi keesan
keesan at sdf.lonestar.org
Wed Mar 28 04:11:51 MSD 2007
Regarding spontaneous permission resets:
> [nod] On a "normal" system, I'd set the device to "chattr +i" and see
> what process croaked (or complained in the log files.) On the B.A.D.
> gadget that Sindi is using, it's anybody's guess.
>
The man page says +i prevents you from writing data to the file. I need
to write to the device to use the modem or rxvt. The problem is that it
is being reset so the user cannot write to it.
i is immutable
u is undeletable
Sort of like write protection in DOS?
I doubt we have log files.
chattr +i /dev/ttyp0
chattr: Input/output error while reading flags on /dev/ttyp0
(same for -i)
chattr +i /dev/ttyS1 or ttyLT0
chattr: Invalid argument while reading flags on /dev/ttyS1
A web search gave me someone talking about reiserfs and a comment that
chattr only works for ext2 fs.
lsattr gives the same results.
Maybe our devices don't have flags?
> --
> * Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *
>
Sindi
keesan at sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
More information about the TAG
mailing list