Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
up vote 0 down vote accepted


The user doesn't have access to the mounted folder. I just ran a chmod command to change folder permissions.

sudo chmod 777 images/*

Hope this can help somebody else.

share|improve this answer

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.