LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there is any wat to non root user can able to install rpm (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-is-any-wat-to-non-root-user-can-able-to-install-rpm-684192/)

baskar.v 11-17-2008 08:57 PM

Is there is any wat to non root user can able to install rpm
 
Hi
We are creating desktop application for Linux, still now we are using "tar" and shell script to install application in the client machines. We are planning to distribute this software through rpm. Most of our clients are not having root permission. Is there is any simple way to override this problem ?

The following command solving our issue, but most our clients don't have rights to request this to their Admin.

chmod -R a+rwx /var/lib/rpm ( by admin user )


Regards
Baskar

Junior Hacker 11-18-2008 12:32 AM

Quote:

Most of our clients are not having root permission. Is there is any simple way to override this problem ?
No!........

lazlow 11-18-2008 12:34 AM

If just anybody could install software to the system, it would make the system insecure(like windows).

linuxlover.chaitanya 11-18-2008 12:38 AM

Can, using sudo, solve your problems?

Junior Hacker 11-18-2008 01:07 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3345883)
Can, using sudo, solve your problems?

Sudo is giving root permission.
The OP said:
Quote:

Most of our clients are not having root permission.
Can you add one + one?

linuxlover.chaitanya 11-18-2008 01:24 AM

Obviously there is no way you can install packages in linux without root permissions. But giving permanent permissions would violate use of root. So other way around is to use sudo.

chrism01 11-18-2008 01:35 AM

Exactly, you can setup sudo to ONLY RUN a specific cmd (or set of cmds). You don't have to give carte blanche, in fact you shouldn't. That isn't what it was developed for, even though these days people seem to want to do that...

Junior Hacker 11-18-2008 02:18 AM

Can a user set up his own sudo to install one specific package?
If you need to call the administrator who's office is on the other side of town to come over and set up sudo in all the clients so they can install one specific package, would'nt it be easier to just tell him to install the frickin' rpm and forget about the sudo bullshit and let's get on with our day?

Junior Hacker 11-18-2008 03:40 AM

linuxlover.chaitanya & chrism01

I don't think you're interpreting the OP's question properly. Here's how I interpret it:
Quote:

Hey yall!
A couple of us here in the office want to install some games, but we're not allowed too install anything. Is there a way we can circumvent the administrator and install these games so we can play instead of work?
And your responce appears to be:
Quote:

Hey bud!
It's easy, just go to the main menu/administrator/sudoers and add yourself to the list and give yourself administrative permission to install games only and VOILA!!, you're all set. Glad to have come to your rescue, no need to thank us bud.
I'm such an idiot!
If I meet yall on the street I'll be sure to bow on my knees and kiss your feet for being so intelligent.

i92guboj 11-18-2008 04:23 AM

Quote:

Originally Posted by chrism01 (Post 3345923)
Exactly, you can setup sudo to ONLY RUN a specific cmd (or set of cmds). You don't have to give carte blanche, in fact you shouldn't. That isn't what it was developed for, even though these days people seem to want to do that...

Yes. And you can run sudo rpm to install a rootkit, vulnerable software, or just send you the passwd file. Giving users that privilege is something that your admin is not gonna do if he has at least a couple of neurons.

To the OP, why do you think that rpm is mandatory? Why not tar everything into an archive, and just instruct the users to install it locally on their home directory? Simple, easy, no risk and everyone can do it.


All times are GMT -5. The time now is 06:11 PM.