LinuxQuestions.org
Visit Jeremy's Blog.
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, 11:23 AM   #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, 11:33 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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, 11:36 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885Reputation: 4885
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, 07:14 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,241

Rep: Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712Reputation: 2712
I concur with TobiSGD; add yourself to the relevant group; simple/quick
 
Old 05-11-2012, 12: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, 04:54 AM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

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


Just use the a & G switch and you should be set.
 
Old 05-12-2012, 12: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, 12: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 08: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 08:55 AM
isolating a day logs from a squid week log rogerdv Linux - General 3 03-30-2010 11:36 AM
/var/log/procmail.log.1 being mailed every day soylentgreen Linux - Server 3 07-10-2007 02:47 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 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