LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09: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, 10:31 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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 10:34 AM.
 
Old 10-18-2012, 10:07 PM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
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, 03:56 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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, 10: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 11:40 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
Open Source Consulting | Domain Registration