LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-16-2010, 04:59 PM   #1
WWII
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
cannot keep group change after bootup


I am using Centos 5.4 and I changed the group on /dev/lp0 to group from root. After I do this my program printing directly to /dev/lp0 works fine. But when I shutdown and reboot the system the group on /dev/lp0 has changed back to lp. Does anyone know how to keep the group changed to group after a reboot.

Thank you
 
Old 03-16-2010, 05:02 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 96
use /etc/udev/udev.permissions
http://unix.derkeiler.com/Newsgroups.../msg00336.html
though better add your user to the lp group
Quote:
sudo adduser login lp

Last edited by troop; 03-16-2010 at 05:05 PM.
 
Old 03-16-2010, 06:35 PM   #3
SemiBeard
LQ Newbie
 
Registered: Mar 2010
Location: Miami
Distribution: Slackware
Posts: 24

Rep: Reputation: 2
reply to permissions set on reboot

add the line:
/bin/chgrp group /dev/lp0
to your '/etc/rc.d/rc.local' file.



Quote:
Originally Posted by WWII View Post
I am using Centos 5.4 and I changed the group on /dev/lp0 to group from root. After I do this my program printing directly to /dev/lp0 works fine. But when I shutdown and reboot the system the group on /dev/lp0 has changed back to lp. Does anyone know how to keep the group changed to group after a reboot.

Thank you
 
1 members found this post helpful.
Old 03-17-2010, 11:20 AM   #4
WWII
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
cannot keep group change after bootup

Thank you SemiBeard

the entry to /etc/rc.d/rc.local worked great. Thanks
 
1 members found this post helpful.
  


Reply


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
Secondary group users need to change the file permissions of primary group files? sunnybmv Linux - Newbie 3 12-10-2009 05:57 PM
init.d change hosed bootup ryedunn Ubuntu 3 09-05-2008 09:59 PM
FC2- Change Bootup from X to bash? bangy Fedora 1 09-02-2004 05:04 AM
bootup font unwanted change centr0 Slackware 2 06-02-2003 11:55 AM
etho bootup dhcp wait time change skeletal29 Linux - Networking 4 06-19-2002 04:49 PM


All times are GMT -5. The time now is 01:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration