Re: /dev/ttySx problems... solved

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

 



On Friday 10 November 2006 19:58, Mikkel L. Ellertson wrote:
>Jeff Vian wrote:
>> On Fri, 2006-11-10 at 09:28 -0500, Gene Heskett wrote:
>>> On Friday 10 November 2006 06:59, stan mcintosh wrote:
>>>> Gene Heskett wrote:
>>>>> selinux is set permissive, and an ls -l of /dev/ttyS* show this:
>>>>>
>>>>> crw-rw---- 1 root uucp 4, 64 Nov  9 16:35 /dev/ttyS0
>>>>> crw------- 1 root root 4, 65 Nov  9 16:35 /dev/ttyS1
>>>>> crw------- 1 root root 4, 66 Nov  9 16:35 /dev/ttyS2
>>>>> crw------- 1 root root 4, 67 Nov  9 16:35 /dev/ttyS3
>>>>
>>>> Cool use of your serial port.  Have you gone into your /dev
>>>> directory and 'chmod o+rw ttyS*' as root?
>>>>
>>>> If this is too much of a noob approach, then I'm busted ;>)
>>>>
>>>> My privileges are:
>>>> [root@localhost dev]# ls -l ttyS*
>>>> crw-rw-rw- 1 root uucp 4, 64 Nov  9 19:29 ttyS0
>>>> crw-rw-rw- 1 root uucp 4, 65 Nov  9 19:31 ttyS1
>>>> crw-rw-rw- 1 root uucp 4, 66 Nov  9 14:13 ttyS2
>>>> crw-rw-rw- 1 root uucp 4, 67 Nov  9 14:13 ttyS3
>>>>
>>>> Regards,
>>>> stan
>>>
>>> Ok, tried that, got this:
>>> [root@coyote dev]# ls -l ttyS*
>>> crw-rw-rw- 1 root uucp 4, 64 Nov  9 16:35 ttyS0
>>> crw----rw- 1 root root 4, 65 Nov  9 16:35 ttyS1
>>> crw----rw- 1 root root 4, 66 Nov  9 16:35 ttyS2
>>> crw----rw- 1 root root 4, 67 Nov  9 16:35 ttyS3
>>
>> Stan's suggestion only changes the other permissions.  You may want to
>> run it as chmod +rw /dev/ttyS?  to give the permissions to user,
>> group, and other.
>
>One other thing to keep in mind - chances are the changes will not
>stick. If you are using udev, it will reset them when you reboot.
>You may also want to check
>/etc/security/console.perms.d/50-default.perms to see if it is set
>to manage serial port permissions. If so, it will overwrite the
>permissions every time the "owner" of the console changes.

It doesn't appear to include any ttyS* stuff at all, so I think I'm safe 
there.

Thanks.

>Mikkel
>--
>
>  Do not meddle in the affairs of dragons,
>for thou art crunchy and taste good with Ketchup!

-- 
Cheers, Gene


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux