FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 07-25-2008, 09:47 AM
Donn
 
Default Installing software for only certain users

Hi,
Is there any way to aptitude/apt-get install X for only one (or a few) users
but not others?

d

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-25-2008, 04:27 PM
Art Alexion
 
Default Installing software for only certain users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 25 July 2008 5:47:29 am Donn wrote:
> Hi,
> Is there any way to aptitude/apt-get install X for only one (or a few)
> users but not others?


Off the top of my head, I am thinking you could either play with permissions,
or install from source into ~/ and make sure there are no group or others
permissions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBSIn+90LG/oYII0YuAQInaQQAsDFAcbZQ2ye1/9wLCiqxsB9V25itX81C
CStzHpQ5oI6p/vKITrE+4eniMB5e+96EwoP5aySDeh+tnycgBsbwpUnBDO8drY4 P
ieSP3Djnu8d13yy7ZRSnFOC291g/sAJs3n+sC3hcPaa5AK3KS2UhPtX1IzFVcBce
N07aAR6hsqc=
=aMPj
-----END PGP SIGNATURE-----

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-25-2008, 04:49 PM
Donn
 
Default Installing software for only certain users

On Friday, 25 July 2008 18:27:35 Art Alexion wrote:
> Off the top of my head, I am thinking you could either play with
> permissions,
But doesn't [sudo apt-get install blah] just proceed as root putting software
into all the users menus? How do you stop root

> or install from source into ~/ and make sure there are no
> group or others permissions.
Sure, source... er. I was hoping for a [sudo apt-get --ignoreuser=zombi
install blah]

d

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-25-2008, 05:07 PM
Art Alexion
 
Default Installing software for only certain users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 25 July 2008 12:49:14 pm Donn wrote:
> On Friday, 25 July 2008 18:27:35 Art Alexion wrote:
> > Off the top of my head, I am thinking you could either play with
> > permissions,
>
> But doesn't [sudo apt-get install blah] just proceed as root putting
> software into all the users menus? How do you stop root

Yeah, but afterwords, you can go in and change the permissions of the /usr/bin
executable. I'd disable others, assign it to a certain group, and only add
permitted to the designated group.

I have never tried it, and there may be a more elegant way to accomplish it,
but, off the top of my head as I said, it should work. You may want to edit
the global menu if you also want to obscure it from other users.


- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBSIoH50LG/oYII0YuAQJf9wP+Lpe3iDkKWjJMclTdo3WZu1N78K2Ap+Jx
U3ctfgLs5BhmRliChDvEAiRuqyXiYhcEOtBfr0OhXlmp5aDETb rj9L+qm5yCcCst
fxk2HAcgbrbhZkSXah46MWBMn+hGqaaNyZDur5Ctn7BgsY0n28 kZVhF3RCv0Wfdn
3digvJuuw+Y=
=yMny
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBSIoIQELG/oYII0YuAQL8HQQAivgw4sHOXigShbOGgek4hQmKISeYPNoN
+jVnw09/zndnCGptJ7O4lLeAcHpWiVZNP4p48pMlehWuOT1UBnrD2Zh+pq Bn6lyn
+1145cXDHIF8EYkLb3k23qxxF+hFdIze3V9fnaJB4c8psPGILj zuxznWtvMk5FKz
xF2lqvS+DSA=
=g7gH
-----END PGP SIGNATURE-----

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-25-2008, 05:19 PM
Donn
 
Default Installing software for only certain users

On Friday, 25 July 2008 19:07:12 Art Alexion wrote:
> Yeah, but afterwords, you can go in and change the permissions of the
> /usr/bin executable. *I'd disable others, assign it to a certain group, and
> only add permitted to the designated group.

Right I hear you. Horrifying and all, but if that's the only way..

d

--
"A computer without Windows is like chocolate cake without mustard."
-- Anonymous Coward /.

Fonty Python and other dev news at:
http://otherwiseingle.blogspot.com/

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-26-2008, 07:07 AM
Toby Dickenson
 
Default Installing software for only certain users

Donn wrote:

> On Friday, 25 July 2008 18:27:35 Art Alexion wrote:
>> Off the top of my head, I am thinking you could either play with
>> permissions,
> But doesn't [sudo apt-get install blah] just proceed as root putting
> software into all the users menus? How do you stop root
>
>> or install from source into ~/ and make sure there are no
>> group or others permissions.
> Sure, source... er. I was hoping for a [sudo apt-get --ignoreuser=zombi
> install blah]

The menu items get automatically removed if the user does not have
permissions to execute the appropriate program. So suppose you want to
limit amarok.... create a new group called "amarokusers", and add the users
who should be able to access it. Then:

$sudo chgrp amarokusers `which amarok`
$sudo chmod o-rwx `which amarok`

That should leave you with:

$ls -l `which amarok`
-rwxr-x--- 1 root amarokusers 20380 2008-04-18 18:47 /usr/bin/amarok

You might need to redo that if amarok gets upgraded.




--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-26-2008, 07:29 AM
Donn
 
Default Installing software for only certain users

On Saturday, 26 July 2008 09:07:21 Toby Dickenson wrote:
> $ls -l `which amarok`
> -rwxr-x--- 1 root amarokusers 20380 2008-04-18 18:47 /usr/bin/amarok
> You might need to redo that if amarok gets upgraded.
Thanks Toby, I get the gist, but I can't help thinking it's a lot of work.
I essentially want to keep one user's menu as clean as possible while my own
can fill up with whatever. If I want blender, inkscape, phatch, eric, miro,
scribus -- suddenly there are a lot of groups.
I suppose I could create a DonnOnly group and make sure the other user is not
in it, but I'm still chasing binaries and scripts through the fs to keep them
in line.

From a python-dev pov, I wonder how I'd write a python install file to offer a
similar user exclusion. I have no idea!

Perhaps the best route is simply to edit the user's menu and hide/remove the
apps I don't want them to worry about.

d

Fonty Python and other dev news at:
http://otherwiseingle.blogspot.com/

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 07-26-2008, 03:13 PM
Derek Broughton
 
Default Installing software for only certain users

Toby Dickenson wrote:

> The menu items get automatically removed if the user does not have
> permissions to execute the appropriate program. So suppose you want to
> limit amarok.... create a new group called "amarokusers", and add the
> users who should be able to access it. Then:
>
> $sudo chgrp amarokusers `which amarok`
> $sudo chmod o-rwx `which amarok`
>
> That should leave you with:
>
> $ls -l `which amarok`
> -rwxr-x--- 1 root amarokusers 20380 2008-04-18 18:47 /usr/bin/amarok
>
> You might need to redo that if amarok gets upgraded.

That's so cool. I love learning new stuff about this OS after a decade of
use!
--
derek


--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:36 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org