bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chown and chmod


From: Bob Proulx
Subject: Re: chown and chmod
Date: Tue, 17 Oct 2000 15:23:57 -0600 (MDT)

>    I put the following commands in /etc/rc.local
> to change serial port driver,
>     /bin/chown uucp:uucp  /dev/ttyS2
>     /bin/chmod 660        /dev/ttyS2
> But it does not work.  Is it a bug?

Almost certainly the chmod commands did work.  But almost certainly
with serial port devices the processes that come by later to open them
will change them to something else.

Please try this:

    /bin/chown uucp:uucp  /dev/ttyS2
    /bin/chmod 660        /dev/ttyS2
    ls -l /dev/ttyS2

Or possibly the following in case the output is lost to the screen.

    /bin/chown uucp:uucp  /dev/ttyS2
    /bin/chmod 660        /dev/ttyS2
    ls -l /dev/ttyS2 > /tmp/ls-l.ttyS2.out # Save output in file.

I find it likely that the you will find that those commands worked and
it was only later when the files were changed again.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]