Cannot use mkdir in home directory: permission denied (Linux Lubuntu) [closed]

As @kirbyfan64sos notes in a comment, /home is NOT your home directory (a.k.a. home folder): The fact that /home is an absolute, literal path that has no user-specific component provides a clue. While /home happens to be the parent directory of all user-specific home directories on Linux-based systems, you shouldn’t even rely on that, given … Read more

Adding users to sudoers through shell script

You could simply echo (with elevated privileges, of course) directly to the /etc/sudoers file: sudo -i echo ‘nickw444 ALL=(ALL:ALL) ALL’ >> /etc/sudoers # ^^ # tab (note the tab character between the username and the first ALL) Or, for a script: #!/bin/bash # Run me with superuser privileges echo ‘nickw444 ALL=(ALL:ALL) ALL’ >> /etc/sudoers Then … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)