Over the weekend, I installed Efax and Efax-gtk to get Linux to behave as a fax machine. It looks good but I ran into a problem with accessing /dev/ttyS1 (where my modem is), which I'd appreciate some help with.
Running Efax-gtk as an ordinary user, I got an error message when it tried to access the modem, saying that permission was denied. I checked the ownership of /dev/ttyS1 and it is root:uucp. I then edited /etc/groups and added myself to the 'uucp' group, but this didn't fix the problem. So I put that back as it was and chowned /dev/ttyS1 to root:users, since I know I'm in in the group 'users'. That worked, but it's left me feeling slightly guilty: should I have altered the ownership of /dev/ttyS1? I suspect not!
So how do I make it all work without chowning /dev/ttyS1, please? It works without any of these tweaks if I run Efax-gtk as 'root', as bad as that sounds!
Thanks for any clues!
Gerald.
From: Edenyard
Over the weekend, I installed Efax and Efax-gtk to get Linux to behave as a fax machine. It looks good but I ran into a problem with accessing /dev/ttyS1 (where my modem is), which I'd appreciate some help with.
Running Efax-gtk as an ordinary user, I got an error message when it tried to access the modem, saying that permission was denied. I checked the ownership of /dev/ttyS1 and it is root:uucp. I then edited /etc/groups and added myself to the 'uucp' group, but this didn't fix the problem. So I put that back as it was and chowned /dev/ttyS1 to root:users, since I know I'm in in the group 'users'. That worked, but it's left me feeling slightly guilty: should I have altered the ownership of /dev/ttyS1? I suspect not!
So how do I make it all work without chowning /dev/ttyS1, please? It works without any of these tweaks if I run Efax-gtk as 'root', as bad as that sounds!
Interesting that you edited /etc/groups directly.
I have a so called Linmodem (Lucent chipset) and the device is /dev/ttyLT0.
I don't have access to my system at the moment (at work) but AFAICR after installing I did;
$su #chown root:modem /dev/ttyLT0 #chmod 660 /dev/ttyLT0 #adduser bart modem #[ctrl-D] $
where bart is my ordinary user id. This seems to work fine.
Regards,
Keith ____________ ARMOR, n. The kind of clothing worn by a man whose tailor is a blacksmith. Ambrose Bierce - The Devil's Dictionary ____________ NOTICE: This e-mail, and each of any attachments transmitted with it, is confidential, is the property of Kewill Systems plc ("Kewill"), and is intended solely for the information of the individual/entity to whom this e-mail is addressed. It may also be privileged or protected by other legal rules. If you have received it by mistake, please notify the author immediately by replying to this e-mail and then destroy/delete this e-mail and all attachments (if any). If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. In accordance with Kewill's internal policy e-mails sent and/or received may be monitored. Whilst Kewill takes reasonable precautions (including use of anti-virus software) it accepts no responsibility for any loss or damage should this e-mail contain any virus, or similar destructive or mischievous code. © Kewill Systems plc 2002. Kewill Systems plc (1037515) - registered in England at Ash House, Fairfield Avenue, Staines, Middlesex, TW18 4AB, UK
Edenyard mail@edenyard.co.uk wrote:
/etc/groups and added myself to the 'uucp' group, but this didn't fix the problem.
Did you start a new login after doing that? Changes to /etc/group only take effect then. Running the id command shows what groups you are in for any given login.
Basically, adding yourself to the proper group is the right way to do it.