LinuxQuestions.org
Review your favorite Linux distribution.
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 08-16-2006, 07:16 AM   #1
Ariod
Member
 
Registered: Aug 2005
Posts: 31

Rep: Reputation: 15
Permissions Problem?


Hi all,

Every once in a while I play poker at PokerRoom.com (using Firefox on FC5) and every time I'm done, a directory gets created in my home directory called Ongame Network. Is there any way I can forbit this from happening?
 
Old 08-16-2006, 09:03 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Unfortunately no. One of the weaknesses of the Unix model of file permissions is that you can always create and modify files in your own home directory. I spent a lot of time trying to create a .bashrc file in a home directory that the owner of the directory couldn't change. I even tried creating a link to a file owned by root in the /etc directory. Nothing prevented my normal user account from modifying the .bashrc file or the link to the file in the /etc directory.

One thing that I have done successfully to prevent unwanted files being created is to change the directory that holds the unwanted files to a link to /dev/null. For example picture viewer software that I sometiems use wants to create a directory ~/.thumbnails. I don't want thumnail versions of the picture files that I look at so I made the ~/.thumbnails directory into a link to /dev/null as follows.

cd
rm -r .thumbnails
ln -s /dev/null .thumbnails

I've done the same thing with the directory ~/.recently-used and other directories that various applications use as a cache.

Of course if your web site stores information that you need to play into this directory turning it into a link to /dev/null could prevent you from playing. If it just uses this directory to keep track of your visits then maybe you can turn it into a link to /dev/null.

That's about all that I can think of to prevent the creation of unwanted files in a directory that your user account owns. If your application is smart enough to check for this it could delete the link and create the directory so, depending on the application's developer, even creating a link to /dev/null may not work.
 
Old 08-16-2006, 04:33 PM   #3
Ariod
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for the extensive reply!
 
  


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
problem with permissions alaios Linux - General 3 03-06-2006 11:46 PM
Need help with a permissions problem bobbryce Fedora 3 02-08-2005 09:09 AM
Permissions Problem! codino Linux - Newbie 1 03-13-2004 07:12 PM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM
Permissions problem TheShemeta Linux - Newbie 10 06-12-2003 07:50 PM

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

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