Hi. I'm trying to set up a class 2.0 US Robotics modem to handle faxes. I'm using efax-gtk on Mandriva Free 2008. The modem connects ok, but periodically I get the error: 'efax-0.9a: 19.30.27 Error: can't open serial port /dev/ttyS0: Permission denied efax-0.9a: 19.30.32 finished - unrecoverable error'
As su, chmod 777 /dev/ttyS0 fixes it, but only until it happens again. ttyS0 appears to be owned by root. It seems to me maybe it should be owned something/someone else to fix this permissions problem but I don't have a clue who. Can anyone put me right on this please? Dave Cooper
Hi Dave
On Thursday 17 January 2008 14:55, Dave Cooper wrote:
As su, chmod 777 /dev/ttyS0 fixes it, but only until it happens again. ttyS0 appears to be owned by root. It seems to me maybe it should be owned something/someone else to fix this permissions problem but I don't have a clue who. Can anyone put me right on this please?
Check the group as well - On my Debian box it is dialout.. Then add yourself to that group (in /etc/group) and you should be OK after logging out/in.
The other alternative (if you are running udev) is to dive in to the udev rules and make the change there..
Regards, Paul.
Dave Cooper dave@accuramatic.co.uk wrote:
As su, chmod 777 /dev/ttyS0 fixes it, but only until it happens again. ttyS0 appears to be owned by root. It seems to me maybe it should be owned something/someone else to fix this permissions problem but I don't have a clue who. Can anyone put me right on this please?
Look at what group ttyS0 belongs to. Try ls -l /dev/ttyS0 The group name will probably be just after the "root". Then, add your user(s) to that group with the command usermod -a -G whatevergroupnameitsaid username or if that doesn't work, edit /etc/group to add the username to the end of the line starting with whatevergroupnameitsaid.
Alternatively, change the permissions on /dev/ttyS0 forever. These days, that's often done by udev, so grep -r /etc/udev/rules ttyS to try to find where the MODE is set.
Hope one of those works for you,