LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2008, 07:57 PM   #1
baskar.v
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 11-17-2008, 11:32 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Most of our clients are not having root permission. Is there is any simple way to override this problem ?
No!........
 
Old 11-17-2008, 11:34 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
If just anybody could install software to the system, it would make the system insecure(like windows).
 
Old 11-17-2008, 11:38 PM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Can, using sudo, solve your problems?
 
Old 11-18-2008, 12:07 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
Originally Posted by linuxlover.chaitanya View Post
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?
 
Old 11-18-2008, 12:24 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 11-18-2008, 12:35 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,357

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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...
 
Old 11-18-2008, 01:18 AM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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?
 
Old 11-18-2008, 02:40 AM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 11-18-2008, 03:23 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,072

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by chrism01 View Post
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.
 
  


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
installing an rpm as a non-root user sidra Red Hat 2 09-19-2007 02:54 PM
If not root ...then what user to install is best? Old_Fogie Slackware 27 05-08-2006 04:19 AM
can i install rpm package as non-root user? parv Linux - Software 10 09-17-2004 10:46 PM
Install apps as root or user ? jlassiter Linux - Newbie 13 09-10-2004 10:17 AM
How do i install a rpm not being root? Hano Linux - Software 7 09-10-2003 05:28 AM


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