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 want my guest accounts to be able to access ~/Music. I've changed the settings in my main account but can't find the share when I start a guest session. Where should I look, or what am I doing wrong?

Edit: Now I can see the root folder by browsing to "Network", but can't access any sub-directories.

alt text

share|improve this question
up vote 2 down vote accepted

You are doing it wrong.

The Shares you are setting up as described in your question are network shares. For people accessing your PC over a network. You most likely don't want any shares.

There are many ways to set permissions to allow user "guest" to access files in ~/Music.

Here is one way:

Assuming you are happy for anyone to access this directory you can do this.

Check permissions on your home directory allow anyone to access it's contents. Running ls -l should return this

richardjh@ubuntu ~ $ ls -ld ~
drwxr-xr-x 57 richardjh richardjh 4096 2010-10-28 09:10 /home/richardjh

The important bit is the drwxr-xr-x

Set Permissions on ~/Music and all subfolders to 755 like this

find ~/Music -type d -exec chmod o+rx {} \;

Set Permissions on all files in ~/Music and it's subfolders like this

find ~/Music -type f -exec chmod o+r {} \;

Log in as guest and you should be able to browse the Music directory and play the files within.

share|improve this answer
You could if you insist set up a file server on your machine and then as another user access those files over the network and back to your local machine. It is probably not what you want to do. – Richard Holloway Oct 28 '10 at 12:49
Works, thanks very much. Just a minor typo on last command: "- type f" should be "-type f". – Internet man Oct 28 '10 at 12:59
Max: Thanks man. It is the minor typos that cause the major issues. I have corrected the command. – Richard Holloway Oct 28 '10 at 13:03
This method doesn't work on 12.04: guest user isn't allowed to read any file in /home /media /mnt even if with correct permissions – Dariopnc Nov 9 '12 at 14:14
@Dariopnc Maybe by editing file /etc/apparmor.d/abstractions/lightdm you can add read access for a directory. E.g. adding a line ` /home/me/Music/** r,` would add read permission for stuff under /home/me/Music/, I think, supposing you don't have encrypted home directory. – jarno Feb 29 at 22:13

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.