473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

non root users accessing application installed with root instance

Hi all,

I am looking for an approach to adapt for allowing non root users to
access application(s) (some specific ones) that were installed with
root privileges. I cannot adapt an approach in which the user
intervention is required(the 'su' coomand one) as well as would not
look for something that will compromise the security of the application
and the system as well.

I Thought of creating a group and assigning it read-and-execute rights
for the application(s) but as with root install, the application will
reside in the general default install dirs (/etc/ , /lib/ , etc) this
will require giving execute rights (for browsing thru the directories)
and may eventually cause some security threats. Please do comment upon
this apporach, pointing out flaws in it.

Any other idea/appraoch suggested would only help me in evaluating
things in a better way.

Regards,
Hector

Dec 5 '06 #1
5 1475
hector wrote:
I am looking for an approach to adapt for allowing non root users to
access application(s) (some specific ones) that were installed with
root privileges. I cannot adapt an approach in which the user
intervention is required(the 'su' coomand one) as well as would not
look for something that will compromise the security of the application
and the system as well.

I Thought of creating a group and assigning it read-and-execute rights
for the application(s) but as with root install, the application will
reside in the general default install dirs (/etc/ , /lib/ , etc) this
will require giving execute rights (for browsing thru the directories)
and may eventually cause some security threats. Please do comment upon
this apporach, pointing out flaws in it.

Any other idea/appraoch suggested would only help me in evaluating
things in a better way.
This is comp.lang.c, where your question is wildly off-topic; you'd be
better off in comp.unix.programmer (if I've spelt that right).

--
Chris "Perikles triumphant" Dollin
"Who do you serve, and who do you trust?" /Crusade/

Dec 5 '06 #2
Hi,

I was basically looking for some way in which the same can be achieved
by a C code. comp.lang.c being "the" place for C stuff, i posted it in
here.

Furtheromre to clarify i am not looking for any code snippet (though a
rough idea is always an additional advantage ;) ) but just the way it
can be done using C.

Regards,
Hector

Chris Dollin wrote:
hector wrote:
I am looking for an approach to adapt for allowing non root users to
access application(s) (some specific ones) that were installed with
root privileges. I cannot adapt an approach in which the user
intervention is required(the 'su' coomand one) as well as would not
look for something that will compromise the security of the application
and the system as well.

I Thought of creating a group and assigning it read-and-execute rights
for the application(s) but as with root install, the application will
reside in the general default install dirs (/etc/ , /lib/ , etc) this
will require giving execute rights (for browsing thru the directories)
and may eventually cause some security threats. Please do comment upon
this apporach, pointing out flaws in it.

Any other idea/appraoch suggested would only help me in evaluating
things in a better way.

This is comp.lang.c, where your question is wildly off-topic; you'd be
better off in comp.unix.programmer (if I've spelt that right).

--
Chris "Perikles triumphant" Dollin
"Who do you serve, and who do you trust?" /Crusade/
Dec 5 '06 #3
MQ

hector wrote:
Hi all,

I am looking for an approach to adapt for allowing non root users to
access application(s) (some specific ones) that were installed with
root privileges. I cannot adapt an approach in which the user
intervention is required(the 'su' coomand one) as well as would not
look for something that will compromise the security of the application
and the system as well.

I Thought of creating a group and assigning it read-and-execute rights
for the application(s) but as with root install, the application will
reside in the general default install dirs (/etc/ , /lib/ , etc) this
will require giving execute rights (for browsing thru the directories)
and may eventually cause some security threats. Please do comment upon
this apporach, pointing out flaws in it.

Any other idea/appraoch suggested would only help me in evaluating
things in a better way.
I think what you may be looking for is "setuid" permissions under
Unix/Linux. The privileges that a program has while running has
nothing to do with the program (it is an OS function), and hence has
nothing to do with C. Try a unix/linux newsgroup

MQ

Dec 5 '06 #4
hector wrote:

(Please don't top-post.)
I was basically looking for some way in which the same can be achieved
by a C code. comp.lang.c being "the" place for C stuff, i posted it in
here.
It's "the" place for "C stuff", but Unix permissions aren't "C stuff".
Furtheromre to clarify i am not looking for any code snippet (though a
rough idea is always an additional advantage ;) ) but just the way it
can be done using C.
It is done in C by calling functions whose definition is outside the
scope of the C standard. What those functions are, and how they
interact, isn't something to do with C, but something to do with
Unix - so go where the expertise is. (Not that there are /no/ Unix
experts here, of course, but then again, there are bridge players
here, and Eurogamers, and Magenta fans [1], but that wouldn't make
a discussion of the distinction between contracts in Mu and bridge
or what album best goes with a Martin Wallace game topical.)

[1] Use of the plural indicates "at least one".

--
Chris "Perikles triumphant" Dollin
"People are part of the design. It's dangerous to forget that." /Star Cops/

Dec 5 '06 #5
hector wrote:
>
I was basically looking for some way in which the same can be
achieved by a C code. comp.lang.c being "the" place for C stuff,
i posted it in here.

Furtheromre to clarify i am not looking for any code snippet
(though a rough idea is always an additional advantage ;) ) but
just the way it can be done using C.
Please don't top-post. Do read the following links.

--
Some informative links:
<news:news.announce.newusers
<http://www.geocities.com/nnqweb/>
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html>
<http://www.netmeister.org/news/learn2quote.html>
<http://cfaj.freeshell.org/google/>

Dec 5 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dmitry Akselrod | last post by:
Hello everyone, I am in the process of implementing an internal Certificate Authority on a client's network. The CA will issue certificates to several intranet web apps that will be accessible...
5
by: Jonathan | last post by:
I am creating a CD-ROM based website template. Things work fine under Windows but when I try to run the site under Linux the path is messed up. Therefore my JavaScript functions misinterpret the...
0
by: wh | last post by:
The application that I'm about to start working on requires maintaining a list of users currently accessing an asp.net application running on IIS5.0. I essentially need to monitor which xml files...
1
by: Amjad | last post by:
Hi, I have installed a VB.NET application on a Windows 2000 computer. The application writes to the hard disk under the its folder and writes to the Registry under "LocalMachine\Software". I...
0
by: schneider | last post by:
Hi all, I created a User Control "SlideShow.ascx" in my application's root. Then I created a subfolder and an aspx page "MySlideShow1.aspx" in there. I added an instance of the ascx control to...
7
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello Everyone: I am having the most bizarre problem with my asp.net web app...this is my first web app in asp.net and I inherited it from a programmer who quit...so, I am not completely...
9
by: David | last post by:
With a non-server app there is one instance of the program running and one user 'using' it at a time. With this scenario I'm pretty comfortable with variable scope and lifetime. With a server app...
2
by: shiva359 | last post by:
Hi , could someone throw some light on why do default software when installed ( as root for creating an instance leaves us with some world accessable directories & some ...
2
by: db2dude | last post by:
We have a small problem in one of our database hosts in which the db2ckpwd daemon process runs under the instance owner id instead of "root". Due to this, no other id except the instance owner...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.