Page 1 of 6 123 ... LastLast
Results 1 to 10 of 52

Thread: Ubuntu Server, permissions

  1. #1
    Join Date
    May 2012
    Beans
    80

    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.

  2. #2
    Join Date
    Dec 2006
    Beans
    121

    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.

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu Server help...please?

    Quote Originally Posted by WASHAD View Post
    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.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    May 2012
    Beans
    80

    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/

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    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.

    The log should tell you what the problem is.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    May 2012
    Beans
    80

    Re: Ubuntu Server, permissions

    Thanks dude. How do I view the log file? I get the message that '/var/log/samba is a directory'

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu Server, permissions

    Any text editor would allow you to view the logs.

    Code:
    ls /var/log/samba
    Code:
    nano /var/log/samba/somefile
    Tail works too.

    Code:
    tail /var/log/samba/somefile
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    May 2012
    Beans
    80

    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:

    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

  9. #9
    Join Date
    May 2012
    Beans
    80

    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!

  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu Server, permissions

    Usernames and passwords are case sensitive. How are you trying to connect from the Pi?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •