Skip to main content

Posts

Featured

TechBytes on Linux

This is a growing list of Linux commands which might come handy for the newbies of Linux. 1. Found out i had to set the date like this:    # date -s 2007.04.08-22:46+0000 2. Mounting     sudo mount -t cifs // < pingable_host_or_ip > / < win_share_name > /build -o user= ,domain= ,uid=string,gid=string 3. To install linux packages from internet (ubuntu only)     apt-get install 4. To determine what ports the machine is currently listening on     netstat -an | grep -i listen | less 5. Find in files in Linux     find . | xargs grep 'string' -sl 6. To become superuser/root     sudo -i 7. To find a running process using name ps -aef | grep "searchstring" 8. Alt + F2 opens run window in RHEL 9. To access windows share from linux smb:// /d$ 10. To know the last reboot date & time $ last reboot | head -1 11. To install RPM packages in RHEL rpm -ivh 12. To un-install RPM package in RHEL rpm -e 13. To display Linux Kerne
Recent posts

What is avahi in Linux?

avahi is a Linux implementation of a   protocol   also known as "Rendezvous" or "Bonjour"). Its goal is to let devices, connected to the local network, broadcast their IP-address together with their   function . Hence the printer can from time to time broadcasts : My IP is   192.168.23.45   and I can print any postscript document with ipp prottocol; a NAS can say: My IP is   192.168.23.88   and I can stream music, save your backups, and act as a fileserver. If it is not what you want to hear on your network you can stop / disable the avahi daemon with the standard  systemctl  command, but if you run a cups-broadcast daemon, it will start the avahi itself. Linux uses  fictive  users usually for security reasons, not to give the attacker any chance to hack a process owned by root. So you can see a  postfix  or  mail , and  postgres  or  mysql  users. The daemon, owned by such unprivileged user, gives less chance for the attacker to get the superuser rights.

How to add a user into Super user group in Linux

Found this article to be useful that worked just fine for me to add a user to a super user group.  https://www.howtogeek.com/842739/how-to-add-a-user-to-the-sudoers-file-in-linux/   enu Close Desktop Submenu Mobile Submenu Hardware Submenu Web Submenu Cutting Edge Submenu Lifestyle Submenu Reviews Buying Guides Deals Sign in Newsletter How to Add a User to the sudoers File in Linux Dave McKay Updated  Sep 1, 2023 Hannah Stryker / How-To Geek   Key Takeaways Adding a user to the sudoers file allows them to temporarily gain administrative powers on Linux and perform necessary actions. Logging in as the root user is inadvisable due to the potential for catastrophic mistakes and the ability to manipulate and remove other users. Use the "visudo" command to open and edit the sudoers file, granting specific permissions to users or groups for executing commands with sudo. If a  sudo  command on Linux gets you a message that a user "is not in the sudoers file," you'll ne