Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 11476  / 1 Year ago, thu, march 30, 2023, 11:56:27

I have access to a shared folder from windows to get some images for my webpage. I can mount it using the next command:



sudo mount -t cifs //win-server/folder -o username=myuser,password=mypass /path_to_my_ubuntu_folder


But, when I go to the mounted directory, I can see the listing of the files, but I can't access them. Something like this:



cant access this images



What I'm missing here?



Thanks!


More From » mount

 Answers
2

You need to set ownership of your ubuntu folder to your unix user and group, and specify them when you mount it (uid and gid)



sudo mkdir -p /path_to_my_ubuntu_folder
sudo chown your_unix_user:your_unix_group /path_to_my_ubuntu_folder
sudo mount -t cifs //win-server/folder -o username=myuser,password=mypass,uid=your_unix_user,gid=your_unix_group /path_to_my_ubuntu_folder

[#31067] Friday, March 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
;