LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2012, 10:46 PM   #1
km4hr
Member
 
Registered: Aug 2003
Posts: 39

Rep: Reputation: 15
How to change file permissions permanently?


How can I get file permissions to survive a reboot?

My modem is on device "/dev/ttyACM0". For my dailup program to work I have to set permissions on that device file appropriately. I have to login as root to do this. When I boot the computer the permissions are returned to original settings. How can I stop that? Ordinary users should be able to use dialup without having to log in as root.

I really want to use the "Gnome PPPD" program to manipulate the modem. This application is in the menu's of many distro's. Unfortunately it's busted however. It hasn't worked in years because it doesn't have permission to access files it needs. I've tried several distro's but they have the same problem. It never gets fixed. Apparently I'm the last person in the world using dialup on Linux.

Last edited by km4hr; 03-11-2012 at 10:48 PM.
 
Old 03-11-2012, 11:02 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

for device files this is set with udev (at least on most "current" linux distros). However, in your case you may do better to simply put the users in the dailout group. To confirm that this is a valid approach, please post the output of
Code:
ls -l /dev/ttyACM0
*before* you modify it's permissions.

Also, you please tell us what distro you are using? The output of the following should provide this information:
Code:
lsb_release --all

Evo2.
 
Old 03-11-2012, 11:15 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
The file permissions should not be changing
unless this is a "live" cd you are running
or a live image from a usb thumb drive ( mounting as read only)

Quote:
This application is in the menu's of many distro's. Unfortunately it's busted however. It hasn't worked in years
YEARS ??? what operating system IS this ??? and how OLD is it
 
Old 03-11-2012, 11:41 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by John VV View Post
The file permissions should not be changing
The OP states the file in question is /dev/foo. Files under /dev are created dynamically.
In the past by the MAKEDEV and devfs and more recently by udev. Therefore any changes made to the device ownership or permissions with chmod, chown etc, will be lost on reboot.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't permanently change /dev/loop* permissions RedCharlie Fedora 6 07-21-2010 05:03 AM
How to change the 'open file' for root permanently? thomas2004ch Linux - General 2 11-23-2009 07:07 AM
How to change the 'open file' for root permanently? thomas2004ch Linux - Newbie 4 11-20-2009 04:31 AM
sed to change some values in a file permanently tanveer Linux - General 2 03-23-2008 01:17 PM
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration