LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-20-2006, 08:09 AM   #1
alexandre_fs
LQ Newbie
 
Registered: Oct 2006
Distribution: kubuntu 6.06
Posts: 18

Rep: Reputation: 0
problem changing a file permission permanently


hello.

i am developping an application that needs to poll the device file: /dev/input/mice

i belong to a group that has no permission to read this file, so i use the following command:

sudo chgrp alexandre /dev/input/mice

(alexandre is the group that i belong...)

now, the problem is that when i restart the computer, i must do this command again, because it looses the changes i make.

how can i permanently change the access permission to this kind of device files? (preferably using this group method...)

thank you for your attention,

Alexandre
 
Old 11-20-2006, 08:32 AM   #2
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Which distribution are you using? Does it use udev?
 
Old 11-20-2006, 10:22 AM   #3
alexandre_fs
LQ Newbie
 
Registered: Oct 2006
Distribution: kubuntu 6.06
Posts: 18

Original Poster
Rep: Reputation: 0
sorry for not being specific.

i use Kubuntu 6.06

when I do a 'ls -l' i get:

crw-rw---- 1 root root 13, 63 2006-11-20 17:13 /dev/input/mice

when i type 'groups':

alexandre adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin

and then, to access the file:

sudo chgrp alexandre /dev/input/mice


...now, about the 'udev' i guess so because i have the latest kernel.
 
  


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
linux changing file permission a_vall Linux - General 5 04-15-2006 09:48 AM
Changing File Permission in a FTP directory to prevent deleting of files shawnbishop Linux - Software 3 01-10-2006 06:41 AM
Changing bath PATH permanently ... angel115 Linux - General 7 09-04-2005 11:05 PM
change file permissions recursivly without changing permission of directories eNTi Linux - Software 8 10-15-2004 04:37 PM
Changing network driver permanently jvk Linux - Newbie 7 10-08-2004 09:27 AM

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

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