Accessing shares on a Linksys NSLU2

I recently moved to my new apartment and since my old server takes to much place and makes way to much noise. I decided to migrate all the services to my Linksys NSLU2, which still wasn’t used.

At this moment I only use it as a file-server, but I already putted unslung as firmware on it, cause I’m planning to use it as a fetchmail, imap and webmail frontend. Don’t have a clue if I can get this working or that the NSLU2 is fast enough for this, but as soon as I know I’ll post it.

Back to the point, since the NSLU2 runs on a small Linux distribution I thought it should be really, really easy to mount the shares, but the truth is, it isn’t. It took me about 2 hours before I found the solution and the most strange thing is, I don’t have a clue why the solution does work.

Normally I would mount a share on a way that looks similar like:

sudo mount -t smbfs -o username=user,password=pw //ip_nslu/share /mnt/test

but for some strange reason I don’t get any permission on the share, when I use this way of mounting, to get the right permission I have to use the uid and the gid option. Don’t ask me why, but it works 🙂 if somebody could tell me why this solves the problem, I really like to hear it.

So the working command looks like:

sudo mount -t smbfs -o username=user,password=pw,uid=linux_user,gid=linux_user //ip_nslu/share /mnt/test

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Leave a Reply

Your email address will not be published. Required fields are marked *

*