Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-27-2003, 06:27 PM   #1
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Rep: Reputation: 30
where to store source files in vector

what's good practice for storing source files in a specific location?

The "compiling source" in Linux Answers suggests /usr/local/src but on my system a regular user doesn't have access to that. Is that normal? It's just i don't much get this permissions lark accept to say the less i have access to the less i can screw up, so, if i don't have access by "default" (if there is even such a thing) is it ok to give myself access to these files?
Old 12-27-2003, 07:48 PM   #2
Registered: Nov 2001
Location: Manistique, MI
Distribution: SUSE 12.1
Posts: 136

Rep: Reputation: 15
I take it you're talking about kernel source? It may vary , but in most distributions it would be something like /usr/src/linux-x.xx.xx-x . Yes its normal
for regular users to not have access. if you want , or need to access the files
you can login as root or su root. I'm not all that convinced that its a good idea to change the file permissions to allow regular users access kernel source for security reasons, but chmod is the utility you want to use to change the premissions.

Last edited by Lindy; 12-27-2003 at 07:56 PM.
Old 12-27-2003, 07:53 PM   #3
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
It's basically all up to your own preferences. I use Debian, and /usr/local/src is owned by root.staff by default (/usr/src is owned by root.src though). I usually change the ownership of this directory to root.src and add myself (and others that may want to use /usr/local/src for storing big source trees) to the src group. If you haven't got an "src" group on your system, just create one (using the addgroup command as root) and then make the ownership changes.

Old 12-28-2003, 05:29 AM   #4
Registered: Nov 2003
Location: UK
Distribution: Arch Linux
Posts: 210

Original Poster
Rep: Reputation: 30
i was talking about just plain boring old source for applications cos i know you aren't supposed to move the source code once you compile it, just in case you need to make clean or make uninstall. i think that's true. LQ recommended usr/local/src so i figured i'd ask.


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
where do i store my html files for my apache? philfighter Linux - Networking 8 04-22-2015 09:26 AM
ssh...log files that store the login attempts Bgrad Linux - Networking 4 03-29-2010 10:40 AM
Partition where i can store my files while formatting anti.corp Slackware - Installation 1 12-02-2005 04:44 PM
How do i store the output of an rpm or source to file? dr_zayus69 Linux - Software 8 03-07-2005 10:03 AM
Where does Mandrake store its disro-specific files? will103 Mandriva 1 10-23-2004 10:31 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration