You are not logged in.

#1 2013-04-02 21:52:45

znanie
Member
Registered: 2013-03-30
Posts: 4

reboot changes permissions

Hello,

Am trying to run efax as a user (not root) and am not allowed access to the modem (/dev/ttyS1) and to the /var/lock directory.

As root I am able to change permissions:

 chmod og+wr /dev/ttyS1
 and chmod og+wr /var/lock

Then I am able to use the fax program.

When I reboot the permissions that I had changed revert to what they were before I changed them.

I remember FreeBSD had some provision for setting permissions somewhere in the /etc directory.

Is there some similar scheme in Arch?

How can I allow user access to the device and directory without manually doing so after every boot?

Thanks.

Kirill

Offline

#2 2013-04-02 21:54:56

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: reboot changes permissions

change ownership is different from chmod. Also in this case I don't think changing ownership to your user to the /var/lock is a good idea.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-02 23:00:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: reboot changes permissions

For accessing the /dev/ttyS* stuff, you could use udev's uaccess tag, or simply put your use in the uucp group.  I am really not sure how good of an idea this is.  As for the creation of a lock file as a normal user in /run/lock... I am not sure you should do that.  Giving a normal user access to things like that is just asking for trouble.

Offline

Board footer

Powered by FluxBB