LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Is it possible to run program installed in root user by regular users? (http://www.linuxquestions.org/questions/general-10/is-it-possible-to-run-program-installed-in-root-user-by-regular-users-4175432512/)

cent_sangeeta 10-16-2012 09:53 AM

Is it possible to run program installed in root user by regular users?
 
Hi!
I have installed NCL in root user account. All the NCL script runs well in root user. I have 2 regular user accounts too. But none of NCL script runs in regular users account.Is there any method to make it run in 2 regular users as well or should I install NCL Program in both of regular accounts too?


Thanks,
Sangeeta Maharjan.

sundialsvcs 10-16-2012 10:31 AM

You need to tell us what happens when a non-root user attempts to run the scripts. This will entirely determine what the proper solution to your problem will be.
  • If the scripts require "rootly privileges" in order to do their jobs, then the sudo facility will enable the scripts to be run with elevated privileges.
  • If, on the other hand, it is simply a matter of file-access ("ordinary users can't get to them, whereas root can by definition get anywhere"), then this is simply a configuration issue that really has nothing to do with root at all. (Root has X-ray vision and a super-duper flying suit, but mortals are the ones who actually need to use the program, so you need to adjust the file and directory permissions.)
  • Since root is commonly employed to install things, the command in question might have installed some configuration-files of some kind "in the home directory," or some other default location, which won't be appropriate for any other user. Once again, a configuration change.
As you can see, all of these are plausible explanations for what you've given us so far, and in every one of these cases the solution-statement is, "well, it depends ..."

Please pose additional questions so that we can help you, or, if you solve the problem yourself, post an explanation as to what you did and edit the title-line to include "[SOLVED]."

AnanthaP 10-18-2012 10:07 PM

http://www.ncl.ucar.edu/get_started.shtml

Assuming that you followed all correctly (based on your earlier thread) ie. created environment variables in all users' logins, it seems that SYMLINK may be the option for you since the getting started file doesn't talk of multi user, client install etc.

In SYMLINK, you use normal link command (ln) with a -s flag.

It may be thus
ln -s ncl_files_installed_as_root a_sub_directory_under_your_home_directory

You still might get problems when two people open it at the same time (placement of scratch files etc).

sundialsvcs 10-22-2012 03:56 PM

Also, as an aside ...

I normally set up a "maintenance account," say maint (okay, okay, it's my VM/HPO mainframe days catching up with me at last ...), and this non-rootly user and the non-rootly group that he's the sole member of is responsible for maintaining /usr/local/anything, this being the place where all applications "of my own choosing" get put.

All of the scripts related to system maintenance are stored in this account (whose home-directory is not accessible to others), and this user of course owns all of the applications and their related files. This user has no special powers, so setuid is not an issue, but he's the only one with read/write permission to any of these files.

/usr/local/... is set up as one of the entries on the default PATH, library-path and so-on such that files in these areas are accessible to everyone (but inferior in the search-path order to any system-defined applications or commands).

All of this serves to create a three-level hierarchy of stuff:
  1. Stuff defined by the distro, and maintained in the distro's appointed fashion.
  2. "Local stuff," as described.
  3. "Your stuff," whoever you are.

cent_sangeeta 11-06-2012 10:35 AM

hi all,

for regular user
[atmos_stud@ localhost Deskto]$ ng4ex gsun01n
path to directory (root)not found [environment variable not set]

Sangeeta Maharjan


All times are GMT -5. The time now is 10:55 AM.