Ubuntu Server, permissions
Hi guys, I'm a real newbie here, and an almost total Linux virgin.
I'm trying to set up a home server using Ubuntu Server 12.10.
I have installed it fine, and am able to ssh into it from my main (windows 7) pc.
I've installed Samba and Webmin, but when I access the shared directories from windows, I can't make new folders, or copy files etc. I've googled until I really don't understand anything of what I'm reading now, and I'm after either an idiot-proof guide to setting this up, or help to understand what I've done wrong.
Any help is much appreciated.
Re: Ubuntu Server help...please?
I'm not an Ubuntu expert by any means, and what I am going to recommend might earn me some dirty looks, but here goes.
You may have a permissions problem on the folder that you want to share.
So, from SSH, can you determine the location of the folders that you want to share? If so, use the cd command to get you to the folder just above the share folder. For example, if I am sharing "/home/steve/documents/shared_folder", then I would "cd /home/steve/documents"
Once there, type the command "chmod -R 777 shared_folder". That is going to give EVERYONE permission to do anything they like with that folder and everything within that folder. See if that fixes your problem. If so, report back and we can talk giving the shared folder the appropriate permissions.
Cheers.
Re: Ubuntu Server help...please?
Quote:
Originally Posted by
WASHAD
I'm not an Ubuntu expert by any means, and what I am going to recommend might earn me some dirty looks, but here goes.
You may have a permissions problem on the folder that you want to share.
Agreed.
You can check the samba logs in /var/log/samba/ to see what the problem is.
Re: Ubuntu Server help...please?
Cheers guys, I've tried the chomd command - no joy.
To be honest, I've got myself into such a mess now with the various test folders & users I've set up, I'm very confused. I think I'm going to delete the shares I have done & start from scratch. I've read somewhere that Webmin shouldn't be used to set up samba shares - is this right, and can anyone point me in the direction of a good, foolproof guide?
I had been following this guide:http://linuxhomeserverguide.com/
Re: Ubuntu Server help...please?
That's a decent page, but I had a hell of a time setting up Samba originally, and I wrote up a guide to it. You can find it here.
I gave up on using Webmin back in 9.04, as I found it was easier to just manage stuff via SSH, but that is just me, of course. :p
The log should tell you what the problem is.
Re: Ubuntu Server, permissions
Thanks dude. How do I view the log file? I get the message that '/var/log/samba is a directory'
Re: Ubuntu Server, permissions
Any text editor would allow you to view the logs.
Code:
nano /var/log/samba/somefile
Tail works too.
Code:
tail /var/log/samba/somefile
Re: Ubuntu Server, permissions
Hi mate, strangely it appears to be working now - sort of anyway. I can make folders, copy files over, and indeed play files from the server from either of the two Win7 pc's on the network. I also have a Raspberry Pi running XBMC that for some reason just refuses to connect. It sees the Samba shares, but asks for a username & password. I've tried every combination of the Samba users/passwords in there, but nothing works.
Here is the out put from that log:
Quote:
cores log.192.168.1.6 log.craig-pc log.nmbd log.raspbmc
log.192.168.1.4 log.192.168.1.8 log.media-pc log.openelec log.smbd
Re: Ubuntu Server, permissions
Anyone? It's driving me crazy, and I don't have the knowledge to work out what I've done wrong!
Re: Ubuntu Server, permissions
Usernames and passwords are case sensitive. How are you trying to connect from the Pi?