Results 1 to 4 of 4

Thread: Samba File Permission error

  1. #1
    Join Date
    Aug 2005
    Posts
    518
    Rep Power
    0

    Default Samba File Permission error

    I have been having this problem, My samba permission is as follow however,

    [global]
    netbios name = Web-cont
    security = user
    map to guest = Bad User
    strict locking = no

    [website]
    writeable = yes
    path = /var/www/html
    force create mode = 777
    force user = nobody
    create mode = 777
    guest only = yes
    public = yes
    directory mode = 000

    when a file is added it get the file permission of rwxrwx-wx

    Can anyone tell me why... when i change to 775 i get rwxrwx--x.... WHY???
    Why fight Information Technology when you can outsource IT

  2. #2
    Join Date
    Aug 2002
    Posts
    612
    Rep Power
    0

    Default

    -rwxr-x--- Means:
    ^^^ The owner (user) can read, write, execute
    ...^^^ the group can read and execute
    ......^^^ everyone else cannot do anything with it.

    In your config it seems the owner and group have read, write, and executable rights but everyone else has execute. i.e. rwxrwx--x....I'm assuming that 777 gives rwxrwxrwx. Might wanna comment out guest only and/or force user and see what happens to the permissions. Will update yu on any new findings.

    775 is different from 777 by the way...I think 777 is most permissive.

    http://askubuntu.com/questions/97669...ed-directories

    typing man smb.conf at the command line is also a good solution. You will have to do some reading though.
    Last edited by Arch_Angel; May 27, 2013 at 11:57 AM. Reason: merged multiple posts
    "To err is human - and to blame it on a computer is even more so."
    Alcatel One Touch PIXI 3 (4.5)
    LG Fortune 2

  3. #3
    Join Date
    Aug 2005
    Posts
    518
    Rep Power
    0

    Default

    Quote Originally Posted by kknight View Post
    -rwxr-x--- Means:
    ^^^ The owner (user) can read, write, execute
    ...^^^ the group can read and execute
    ......^^^ everyone else cannot do anything with it.

    In your config it seems the owner and group have read, write, and executable rights but everyone else has execute. i.e. rwxrwx--x....I'm assuming that 777 gives rwxrwxrwx. Might wanna comment out guest only and/or force user and see what happens to the permissions. Will update yu on any new findings.

    775 is different from 777 by the way...I think 777 is most permissive.

    http://askubuntu.com/questions/97669...ed-directories

    typing man smb.conf at the command line is also a good solution. You will have to do some reading though.
    I know....

    the problem.. is.. no matter what permission is set 777 or 775.... the system only gives me a 771.... THat is my problem... (i am assuming that since my share goes across a NFS... why .. i keep getting this....) WHat i currently do, is to chmod to 775 or 777 on the file after uploading it ... to get the permission.... No matter how i try to have samba force.. the 775 or a 777.... it just gives a 771
    Why fight Information Technology when you can outsource IT

  4. #4
    Join Date
    Sep 2005
    Posts
    2,394
    Rep Power
    0

    Default

    That permission might be filtering down from the parent. Check that and see
    To find what you seek in the road of life, the best proverb of all is that which says: "Leave no stone unturned." Edward Bulwer Lytton

Tags for this Thread

Posting Permissions

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