LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 02-26-2004, 01:53 PM   #1
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 214
Thanked: 0
Where to put program/script


[Log in to get rid of this advertisement]
If I've written a script or program, where is the proper place to put it (or a symlink to it) so it is executable by everyone?
cmfarley19 is offline     Reply With Quote
Old 02-26-2004, 02:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,036
Thanked: 0
I would usually use:
/usr/local/bin
david_ross is offline     Reply With Quote
Old 02-26-2004, 02:02 PM   #3
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284
Thanked: 0
/usr/bin should be in everyone's $PATH
bnice is offline     Reply With Quote
Old 02-26-2004, 02:14 PM   #4
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 214
Thanked: 0

Original Poster
I agree with both, but permissions do not allow it for regular users.
Is this normal?

On a somewhat related note how do I see what users are members of what groups?
cmfarley19 is offline     Reply With Quote
Old 02-26-2004, 02:22 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,036
Thanked: 0
Regular users shouldn' have write access but they should have access to the directory.

To find out what groups you are in - just type:
groups
david_ross is offline     Reply With Quote
Old 02-26-2004, 02:23 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,849
Blog Entries: 1
Thanked: 160
Depends on how your machine is set-up...

And
less /etc/groups
will show you who's in which groups...



Cheers,
Tink
Tinkster is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Bash put script jnusa Programming 3 09-07-2004 03:31 AM
Where to put iptables script? tentolga Linux - Networking 9 08-28-2004 08:39 AM
PPPD how do I know what to put in the script? jimdaworm Slackware 4 02-29-2004 01:02 PM
How & where to put script? snakedriver Linux - Newbie 2 01-21-2004 08:11 PM
how to put a shell call in a C/C++ program? Hano Programming 8 05-19-2002 03:26 PM


All times are GMT -5. The time now is 09:40 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration