I'm on a regular Fedora 9 desktop computer with an ext3fs filesystem.
I'm trying to give myself access to /dev/ttyS0. This is because I'm developing code that uses a serial port. While I'm developing this code I don't want to be continually working as super user. I have the following information about /dev/ttyS0:
[freddy@localhost ~]$ ls -lh /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 2009-09-04 12:27 /dev/ttyS0
So as root I added myself (username freddy) to the group uucp. This is just temporary, for while I work on this code and try different stuff as user freddy. Once the code is established and I have a single program with a fixed name, I plan to give myself an entry in /etc/sudoers that will allow me to run the finished program. Here's the info on user freddy:
[freddy@localhost ~]$ id freddy
uid=500(freddy) gid=500(freddy) groups=500(freddy),14(uucp) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[freddy@localhost ~]$ groups freddy
The problem then is that now if I try to use /dev/ttyS0 I can't.
[freddy@localhost ~]$ echo "hello" > /dev/ttyS0
bash: /dev/ttyS0: Permission denied
[freddy@localhost ~]$ cat /dev/ttyS0
cat: /dev/ttyS0: Permission denied
I thought that if I was a member of group uucp which is associated with /dev/ttyS0 that I would be given rw access to /dev/ttyS0. What am I missing here?
Also, does anyone know what the c stands for in the ls -l listing?