I log in to Ubuntu with the username
There are some directories only the
root user is allowed to access, for example
/var/lib/mysql, (I know I can use
sudo to access it but it is not what I want). If I want to get the access privilege on those directories with the
student account, can I use the following command:
chown student: PATH_TO_ROOT_USER_PRIVILEGED_DIR
and after that, can I access that directory by using my own account? Am I right?
If I am right, then will
rootuser lose the access privilege because I changed it to the
If I am wrong, please tell me the right solution.