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.
But since Root created the folder, root owns the folder. Therefore root controls who can modify the file(s) within the folder.
What you need to do is either, change the permissions of the folder, or change who owns the folder...... I suggest doing the latter.
To change the folder ownership use the chown command.
Reading the man page for the chown command,
Code:
man chown
should tell you everything you need to know to change the folder's ownership.
Thanks for answering, the problem occurs when I mount the folder, if the folder is not mounted I can check its permissions and change the owner, but if it is mounted I lose all permissions and it sends a denied message
Then when it is mounted, as root, change the folder's ownership.
By the way, since the folder has been added to your fstab, it should mount during the boot process.
He is telling it to mount with root permissions in the /etc/fstab line. He needs to get rid of all this junk and go with defaults in its place and then see what it does then. And it would not hurt to do a chown user_name:user_name /mnt/folder again as you have suggested to him to be certain.
Code:
uid=xxx,gid=xxx,credentials=/root/credential
Edit: BTW obscuring details like this are of no use, if a cracker has control of your system these details are easily find-able and totally useless in the penetration of a computer. The local IP and the fact there is a user named root on it, with a uid & gid...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.