Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
when i do the command apt-get install xrdp i get this message.. i am new at alway done windows i thank anyone who can give me help.
jim@Server1:~$ apt-get install xrdp
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
when i do the command apt-get install xrdp i get this message.. i am new at alway done windows i thank anyone who can give me help.
jim@Server1:~$apt-get install xrdp
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Hi...
Welcome to the forum
You need administrative privileges to execute your command. To do this, place the word "sudo" in front of the command....
Code:
sudo apt-get install xrdp
Disclaimer: Be careful with commands including "su" or "sudo" especially, as it will essentially allow root access to your system. Mistakes could possibly damage or even destroy your OS.
Regards...
Last edited by ardvark71; 06-15-2016 at 11:47 AM.
Reason: Correction/Removed link.
You need administrative privileges to execute your command. To do this, place the word "sudo" in front of the command....
Code:
sudo apt-get install xrdp
Disclaimer: Be careful with commands including "su" or "sudo" especially, as it will essentially allow root access to your system. Mistakes could possibly damage or even destroy your OS.
Regards...
jim@Server1:~$ sudo apt-get install xrdp
bash: sudo: command not found
Debian doesn't use sudo for administration, that's just Ubuntu and its derivatives.
System administration needs to be done as root. When you installed Debian you set up a root password in addition to your regular user password. Use "su -" to switch to root, enter root's password, and then you can run apt-get and any other admin utilities as necessary.
Do not follow the instructions in the link posted by ardvark71 unless you want to compromise the security of your system. Sudo can be a powerful and useful tool, but it is not designed and should not be used to make a regular user the equivalent of root.
Last edited by suicidaleggroll; 06-15-2016 at 11:25 AM.
Do not follow the instructions in the link posted by ardvark71 unless you want to compromise the security of your system. Sudo can be a powerful and useful tool, but it is not designed and should not be used to make a regular user the equivalent of root.
Hi...
Then why is it ok to use for Ubuntu and its derivatives?
Then why is it ok to use for Ubuntu and its derivatives?
Regards...
In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.
Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.
Last edited by suicidaleggroll; 06-15-2016 at 11:39 AM.
Reason: typo
In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.
Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.
Hi...
Thank you for the explanation, although I honestly don't see the difference between the two in terms of the system rights given.
EDIT: Never mind the last part, I think I get the essence of what you're saying, at least in part...
Quote:
All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.
Regards...
Last edited by ardvark71; 06-15-2016 at 11:55 AM.
Reason: Added additional thought.
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829
Rep:
Quote:
Originally Posted by suicidaleggroll
In mine and many others' opinions, it's not. The first thing I do when I set up any of those systems is enable the root account and disable that stupid unlimited sudo nonsense. All of the protections that are put in place to restrict access to the root account (and there are a lot...no GUI access, no SSH access, etc) are completely voided when a regular user is granted unlimited sudo privileges.
Canonical did it to make Linux more "Windows-like", they didn't do it for security. If you notice, Canonical has also stripped EVERY reference to the word "Linux" from their website so they can pretend to be something different, all while compromising security and adding spyware right into the DE.
I just installed Linux Lite 3.0 on my laptop that's had debian stable for years. I found this odd that when updating through the gui update application i kept putting my root password and kept failing. I put in my user password that worked, . Anyway I want to disable the sudo stuff as well.
I just installed Linux Lite 3.0 on my laptop that's had debian stable for years. I found this odd that when updating through the gui update application i kept putting my root password and kept failing. I put in my user password that worked, . Anyway I want to disable the sudo stuff as well.
To disable it you simply need to comment out the line in /etc/sudoers that's granting "admins" the ability to do anything they want. On ubuntu and friends it looks like:
Code:
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
Just make sure the root account is active before doing so or you'll lock yourself out of your own system.
You can still use sudo as it was intended, by adding rules in /etc/sudoers to allow SPECIFIC users to run SPECIFIC tasks, this just removes the all-encompassing Windows style rule that turns any user in the "sudo" group into another root.
Last edited by suicidaleggroll; 06-15-2016 at 12:05 PM.
You're welcome, were you able to get it to install? If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!
Regards...
Last edited by ardvark71; 06-15-2016 at 06:31 PM.
Reason: Added information.
You're welcome, were you able to get it to install? If so, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!
Regards...
Yes just got to figure it out now. but it did install like you said i thank you i am trying to learn
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.