LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-10-2003, 08:30 AM   #1
foobarrister
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Rep: Reputation: 0
Exclamation sharing programs


Hi
I'm trying to set up user access to CURL on a RedHat server(configured by someone else who cant provide any support!), the root user has access to run CURL but the other users do not.

CURL has been installed to /usr/bin/curl

but the user that I want to run it as, has no access to run programs in that folder.

My assumption is that I can create a symbolic link to it in a users executables folder and they will have access to it, but things are never that simpler, or are they?

Should something like

ln -s /usr/bin/curl /home/virtual/userdir/fst/bin/curl

work?

Many thanks in advance for any replies
 
Old 02-10-2003, 08:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well things are normally simpler.... just change the access rights to curl. any user should normally be able to run anything in /usr/bin, one of the most common places for apps to be installed to. "chmod a+x /usr/bin/curl" should be all you need.
 
Old 02-10-2003, 08:39 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
To give access to a specific folder to a user, simply add the execution bit to that folder, and ensure it's in their $PATH. So, the folder is /usr/bin:
chmod 755 /usr/bin (as root)
And then as the user:
echo $PATH
And see if that folder is in their path. If not add it. How? It seems to be different for everyone on everyone distro, run a search, it's mentioned many many times.

Cool
 
Old 02-10-2003, 09:44 AM   #4
foobarrister
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Original Poster
Rep: Reputation: 0
not matching directory listings

Hi
thanks for the replies,
files in the /usr/bin directory can be executed by all users.

However it doesnt seem to be a permissions issue, I'm getting differing file listings from that directory depending on which user I am, files which I've chmod-ed 777 as root dont show up from other users consoles.

eg.

------ROOT listing---------
lrwxrwxrwx 1 root root 14 Feb 5 16:17 awk -> ../../bin/gawk
lrwxrwxrwx 1 root root 2 Feb 5 16:17 atrm -> at
lrwxrwxrwx 1 root root 2 Feb 5 16:17 atq -> at
-rwsr-xr-x 1 root root 37528 Jan 17 2002 at
-rwxr-xr-x 1 root root 227116 Aug 31 2001 as
-rwxr-xr-x 1 root root 37900 Aug 31 2001 ar
-rwxr-xr-x 1 root root 2187 Aug 31 2001 apropos
-rwxr-xr-x 1 root root 300908 Apr 15 2002 analog
-rwxr-xr-x 1 root root 64236 Aug 31 2001 addr2line
-rwxr-xr-x 1 root root 17640 Jan 7 2002 addftinfo


------------USER listing ---------
-rws--x--x 3 root root 13164 Aug 7 2002 chfn
lrwxrwxrwx 1 root root 14 Feb 6 12:39 awk -> ../../bin/gawk
-rwxr-xr-x 2 root root 300908 May 24 2002 analog

I'm sure that this shows my ignorance some UNIX convention,

many thanks to anyone who can point me in the right direction.
 
Old 02-10-2003, 09:55 AM   #5
foobarrister
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Original Poster
Rep: Reputation: 0
more info

seems that when I do a directory listing of
/usr/bin
from non-root users console
the machine actually lists
/home/virtual/usersdirectory/fst/usr/bin

which makes a certain kind of sense, but still adding a symbolic link into that folder still doesnt grant access to the program....

any suggestions?
 
Old 02-10-2003, 10:13 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
If it's a simple binary program, no extra libs needed (or maybe your virtual /usr/bin directory points to the actual lib directory) just copy the program over instead of linking it, that or hard link it.

And as far as the machine listing /home/virtual/usersdirectory/fst/usr/bin instead of the actual /usr/bin folder is odd to me. Why is it setup like that? Does this user not have acess to any folders below their own home directory, meaning they are in a chroot jail?

Cool
 
Old 02-10-2003, 11:04 AM   #7
foobarrister
LQ Newbie
 
Registered: Feb 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Many thanks for everyones help,

Once I'd hardlinked the binary and its library files to the user's bin & lib folders
found in

/home/virtual/username/fst/usr/lib/
/home/virtual/username/fst/bin/

the program became executable.

This is apparently a RedHat machine. Hopefully this will help others out - machine supplied from
www.oneandone.com
with no documentation (great host support hey!?)

thanks again
 
  


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
music sharing programs for ubuntu? purplepuppy Linux - Software 3 08-12-2005 08:52 PM
Best Media Player & Windows File Sharing programs for Linux? rmainville Linux - Newbie 10 08-11-2004 08:05 AM
Is there ne file sharing programs for linux svnativi Mandriva 2 08-04-2004 10:56 AM
what P2P file sharing programs....... chunlee Linux - Software 6 06-22-2004 04:32 AM
Are there any file sharing programs for Linux? Abremelin Linux - Newbie 9 09-01-2002 06:38 AM


All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration