Permission denied after Mount Share Folder
Good day
I am having problems when mounting a windows shared folder in Ubuntu. I will tell you the steps I take to mount the folder I create a folder in ubuntu, with Code:
sudo mkdir /mnt/folder later I add the following line to the fstab as an example: Code:
//192.168.x.x/folder /mnt/folder cifs uid=xxx,gid=xxx,credentials=/root/credential 0 0 Code:
sudo mount /mnt/folder You could tell me what I'm doing wrong, thanks, the shared folder in windows is configured correctly Note: The folder in windows is shared with write permissions Thanks and regards. |
You checked the NTFS as well as share permissions in Windows, right?
Edit: what is the output of ls -l /mnt/folder? |
Quote:
https://i.postimg.cc/dQkcSXnP/Sin-t-tulo.jpg and the message he sends me is the following: Code:
ls: reading directory '/mnt/folder/': Permission denied |
Quote:
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 |
Quote:
|
Quote:
By the way, since the folder has been added to your fstab, it should mount during the boot process. |
Quote:
Code:
uid=xxx,gid=xxx,credentials=/root/credential |
All times are GMT -5. The time now is 08:31 AM. |