Results 1 to 10 of 52

Thread: Ubuntu Server, permissions

Hybrid View

  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 12.04 Precise Pangolin

    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 12.04 Precise Pangolin

    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'

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
  •