LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 10-16-2012, 10:53 AM   #1
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Rep: Reputation: Disabled
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.
 
Old 10-16-2012, 11:31 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
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]."

Last edited by sundialsvcs; 10-16-2012 at 11:34 AM.
 
Old 10-18-2012, 11:07 PM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 659

Rep: Reputation: 160Reputation: 160
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).
 
Old 10-22-2012, 04:56 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
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.
 
Old 11-06-2012, 11:35 AM   #5
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Original Poster
Rep: Reputation: Disabled
hi all,

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

Sangeeta Maharjan
 
  


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
[SOLVED] Installed application with root privileges, need to run as normal user sabresong Linux - Newbie 3 07-28-2012 07:26 PM
visudo: How to let a user run only a certain program as root? Ryan Hoots Linux - Newbie 6 09-09-2011 10:20 AM
Program run as root, configfiles writable by 'user' jonaskellens Linux - Newbie 3 03-05-2010 11:14 AM
The_Sims for Linux doesnt run in regular User, but in Root. Slackware issue. RHLinuxGUY Linux - Games 4 11-02-2004 10:35 PM
Run program from root login as non-priveledged user? pr0wl3r Linux - Security 3 08-17-2004 10:52 PM


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