Tag Info

New answers tagged

2

First you should know as the others are sudoers then you can't restrict their access, but there is a tricky simple way to do what you want. First of all you should specify all packages that you would to restrict. Open the sudoer config file: sudo visudo for example I'm gonna here prevent the user named user from installing youtube-dl. Add this line to ...


0

To scan local network you can use arp-scan or netdiscover sudo arp-scan -local you will get output on all pc on the lan xxx@xxx ~ $ sudo arp-scan -local [sudo] password for xxx: Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) xxx.xxx.xx.2 6c:62:6d:ce:71:0c ...


0

the command nmap is useful to quickly scan networks. To install nmap, sudo apt-get install nmap. Once it is installed, run the command nmap -sP 10.10.1.0/24 Replace 10.1.1.0 with yours Another solution the command arp will show you a list of the IP's in your network plus the MAC addresses associated with. run the comamnd arp results Address ...


0

Easily you can change the User ID of the user you want to hide. The system tray only shows system users which are having USer ID =>1000 So to hide a user just give him a UID < 1000 You can change the UID using the command sudo usermod -u UID username Be carfull the numbers from 0 to 99 is reserved for system accounts, so don't use them. Moreover ...


1

To hide/invisible an administrator account in login page: Note: replace AdminAccount with the actual administrator account e.g. admin01 (Ctrl + Alt + T) login in sudoer/admin account to used this command. sudo usermod -u 999 AdminAccount


0

The important property of administrators on Ubuntu is that they can perform whatever actions they choose, as root, using sudo and polkit. This is necessary, in order for them to have the power to fully administer the system. And this is already how an administrator changes the password of another user. Considerable restrictions would have to be put in place ...


1

For the reason muru stated in his comment above, it is impossible to restrict some actions for administrator accounts. Even if you can achieve that the admin may not do this from within his/her own account, he/she still has the right to become root (sudo) and have no restrictions at all. Sorry, but the only thing to restrict an admin's rights is to convert ...


2

Problem #1: The commas in the user entry in /etc/passwd are just field separators for user's informations such as "Full Name", "Room Number", "Work Phone" and "Home Phone", so I guess that omitting them is the same as having them with blank fields; Problem #2: From the Trusty man page for useradd: [...] -p, --password PASSWORD The ...


2

This might not be working because your password bar is not encrypted. The man page for useradd states: The encrypted password, as returned by crypt(3). This question on Stack Overflow has a few answers which might help you with your script, as the question asks about adding a user along with a password. As the accepted answer was not updated on that ...



Top 50 recent answers are included