LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2003, 12:49 PM   #1
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 158

Rep: Reputation: 26
Question directory permissions


I have installed quake for linux in /usr/local/games/quake and cannot save my game because I cannot write to /usr/local/games unless in su. Is there an easy way to do this or does it depend on the program itself where it writes the files. I don't want to have to put glquake in my home directory
 
Old 05-27-2003, 01:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
As root:

chmod -R 775 /usr/local/games

And make sure you setup your user with group access by either editing /etc/group file or using chgrp to the games directory of whichever group your user already is part of.

Some commands to get familiar with to change permissions, etc.

man chown
man chgrp
man chmod
 
Old 05-28-2003, 01:43 PM   #3
imroy
LQ Newbie
 
Registered: May 2003
Location: Australia
Distribution: Debian
Posts: 8

Rep: Reputation: 0
If you don't want all your files under /usr/local/games becoming executable, try this instead:

chmod -R 1775 `find /usr/local/games -type d`

This will only change permisions on directories under /usr/local/games. It also adds the "sticky bit", ensuring that only the owners of files (or root) can rename or remove them. Like trickykid said, go read those manual pages.
 
Old 05-28-2003, 05:42 PM   #4
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 158

Original Poster
Rep: Reputation: 26
thanks for that

I didn't really know if I could change the permissions on a directory and if I should. Is that a normal way to go about installing games under linux.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New directory permissions Paulsuk Linux - General 3 05-18-2005 06:36 AM
directory permissions goodolday Linux - Newbie 6 04-28-2005 01:51 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM
directory permissions odious1 Linux - Networking 3 07-15-2003 02:31 PM
directory permissions knueven7 Linux - Software 1 04-14-2003 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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