LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-20-2020, 02:38 PM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 183

Rep: Reputation: Disabled
How do i install packages for Kali on a 2nd. account on same debian install ?


There some things in kali i want to take a look at but want to install on a 2nd. user account i created as admin / Not the primary user i use everyday.
Same box only 1 os & hdd but 2 admin users.
 
Old 03-20-2020, 04:50 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
and so what is the issue? you have two users on the same system that have admin (sudo) log in to the one you want to try out stuff on ..

Code:
sudo
passwd
sudo adduser
(follow promps)
or
Code:
sudo useradd -m -g users -G wheel,floppy,audio,video,cdrom,plugdev,power,netdev,lp,scanner -s /bin/bash slacker
you install apps the very same way using, sudo apt install <pkg>

Last edited by BW-userx; 03-20-2020 at 04:54 PM.
 
Old 03-20-2020, 04:57 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,246

Rep: Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464Reputation: 3464
If you are installing a program using the package manager then it does not matter because the package's installation scripts determines where all the pieces go i.e permissions, menu, configuration files etc. etc. Otherwise you need to modify the scripts but depending on the program you need to recompile the code if there are no command line options to look at configuration files in a non standard location.

If you are installing from source code then anything is possible.
 
Old 03-20-2020, 09:50 PM   #4
TokTok
Member
 
Registered: Oct 2019
Posts: 183

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
and so what is the issue? you have two users on the same system that have admin (sudo) log in to the one you want to try out stuff on ..

Code:
sudo
passwd
sudo adduser
(follow promps)
or
Code:
sudo useradd -m -g users -G wheel,floppy,audio,video,cdrom,plugdev,power,netdev,lp,scanner -s /bin/bash slacker
you install apps the very same way using, sudo apt install <pkg>
I already added the 2nd. user from groups app on main user 1 i did not use sudo as you described so how will this fact affect things ? I did not see any provision for a separate root pw for the 2nd. user but does it actually matter as one root is enough for separate script install to 2nd. user ?
 
Old 03-21-2020, 10:23 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
sudo = root privileges, like a proxy. if you just want to use a separate user to play around with apps then just as you did create one, and give that user the sudo group or wheel group whichever one that systems uses to proxy a user to have root privileges.

root is the one user that is allowed to install and remove software on the system, within the system.

regardless of which user you have using the app it is still on the system as a whole. do you know about the applications config files and where they are usually kept for each user?

this way you can delete them too if you do not want them in the users home.

Code:
sudo moduser -aG sudo username

Last edited by BW-userx; 03-21-2020 at 10:24 AM.
 
Old 03-21-2020, 10:33 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,875

Rep: Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890Reputation: 4890
How did you create that second admin account?
 
  


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
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
Encrypt 2nd drive without 2nd boot time passphrase: How? gargamel Slackware - Installation 15 05-30-2009 02:50 PM
Slackware as 2nd os on 2nd hdd chd_lad Linux - Newbie 7 04-05-2008 03:43 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:20 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