LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2012, 12:23 PM   #1
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 13 Maya 32-bit
Posts: 126

Rep: Reputation: 6
Question chown changes reversed when I log in again the next day


I have been having a difficult time with gnome-ppp ever since I went from Dreamlinux 3.5 to Debian 6.0.3. At first it was not a problem because I had dsl and dialup was just a backup, but now that I have moved AT&T has not been able to successfully set up my uverse (still working on it though), so I am now dependent on dialup, and it is super slow if I access gnome-ppp through sudo instead of the correct way.


I figured out that the reason I could not access the modem was because I did not have permission. So I used
Code:
chown myusername /dev/ttyACM0
to change ownership to me. That works fine... until the following day; when I log into my computer, I no longer own the modem and have to change ownership all over again. This has been going on for nearly a week now. What can I do to make my ownership of the modem permanent?
 
Old 05-10-2012, 12:33 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Setup udev rules to modify the ownership on startup. Google search for udev ownership rules and you'll find some good guides.

---------- Post added 05-10-12 at 09:34 AM ----------

You could also set up a watchdog script as a service or a cron job to check and modify the perms if they don't match the correct owner.
 
Old 05-10-2012, 12:36 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
The entry in /dev for your modem is made on the fly when the system is booting. To let your user use the modem he should be part of the dialout group, IIRC.
 
Old 05-10-2012, 08:14 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I concur with TobiSGD; add yourself to the relevant group; simple/quick
 
Old 05-11-2012, 01:23 AM   #5
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 13 Maya 32-bit
Posts: 126

Original Poster
Rep: Reputation: 6
Smile Thank you all for responding!

I will try adding myself to the dialout group. Sounds like the fastest way to make a permanent change. Just gotta figure out how to do that.
 
Old 05-11-2012, 05:54 AM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
http://linux.die.net/man/8/usermod


Just use the a & G switch and you should be set.
 
Old 05-12-2012, 01:29 PM   #7
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 13 Maya 32-bit
Posts: 126

Original Poster
Rep: Reputation: 6
Smile

Thank you! I'll give it a try and let you know how it went.
 
Old 05-12-2012, 01:59 PM   #8
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 13 Maya 32-bit
Posts: 126

Original Poster
Rep: Reputation: 6
Thumbs up It worked!

I just logged into a terminal as root and typed
Code:
usermod -a myusername -G dialout
hit enter, and when I restarted my system my modem was detected. I can use gnome-ppp with no problems now.

Thanks again, jv2112!
 
  


Reply

Tags
chown


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to add number for each day from log alirz Linux - Newbie 5 07-05-2011 09:42 PM
[SOLVED] Process a log file on an hourly basis but the log only rotates once a day hattori.hanzo Programming 4 10-28-2010 09:55 AM
isolating a day logs from a squid week log rogerdv Linux - General 3 03-30-2010 12:36 PM
/var/log/procmail.log.1 being mailed every day soylentgreen Linux - Server 3 07-10-2007 03:47 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 10:01 AM


All times are GMT -5. The time now is 02:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration