Results 1 to 2 of 2

Thread: Samba - sharing with user rights

  1. #1

    Samba - sharing with user rights

    Hi,
    I have WL-500gP with Oleg 1.9.2.7-10 firmware installed. Also have installed Samba2 and mounted HDD.
    What I want to achieve is to give different permissions for users to different folders, e.g.
    - Folder1 - RW for User1, ReadOnly for User2
    - Folder2 - ReadOnly for User1, RW for User 2

    Can anybody help me with it?
    I know Samba works, I have access to folders with "gest ok = yes" set in smb.conf. but can not log in to folders with set:
    valid users = luk
    write list = luk


    logfile says:
    [2008/06/20 20:32:09, 0] source/smbd/password.c:authorise_login(863)
    authorise_login: rejected invalid user nobody


    I think this can be a key info for somebody who know/understand Samba. This appears in the log file when I double click on the shared folder, before I enter any username / password in the windows prompt. It looks like Samba automatically trys to use the "nobody" user for everything. Am I right? How to change it?

    Best regards,
    LUK

    Here is my complete smb.conf:
    Code:
    # Samba config file created using SWAT
    # from 192.168.1.172 (192.168.1.172)
    # Date: 2008/06/21 14:57:31
    
    # Global parameters
    [global]
    	workgroup = MSHOME
    	netbios name = ASUS
    	server string = Samba Optware Server
    	log file = /opt/var/log/samba/log.%m
    	max log size = 50
    	load printers = No
    	dns proxy = No
    	hosts allow = 192.168.1.
    
    [homes]
    	comment = Home Directories
    	read only = No
    	browseable = No
    
    [printers]
    	comment = All Printers
    	path = /opt/var/spool/samba
    	printable = Yes
    	browseable = No
    
    [tmp]
    	comment = Temporary file space
    	path = /tmp
    	read only = No
    	guest ok = Yes
    
    [www]
    	comment = HTTP server files
    	path = /opt/share/www
    	read only = No
    	guest ok = Yes
    
    [mariola]
    	path = /tmp
    
    [luk]
    	comment = LUK's private
    	path = /tmp/mnt/disc0_4/luk
    	username = luk
    	valid users = luk
    	read list = mariola
    	write list = luk
    	read only = No
    	guest ok = Yes

  2. #2
    Hi LUK,

    In my [global] section I also have the following :-

    security = user
    encrypt passwords = yes
    smd passwd file = /opt/etc/samba/smbpasswd

    You then need to do a smbpasswd <user> for each of your users and this will be the password they use to access the share.

    The only other thing I can think of is how are you trying to access the shares (Windows XP or Vista)? If you don't get a chance to enter a username/password I would guess it was your machine that's trying to access the share that's at fault not your Samba config. If you're using windows can you map a drive to the share and then force a username/password to see if that works.

    Cheers

    Ade
    Last edited by Ade; 08-07-2008 at 22:57. Reason: Proper check of my smb.conf file

Similar Threads

  1. Internal Samba with Oleg's firmware 1.9.2.7-10
    By Garluk in forum WL-500gP Firmware Discussion
    Replies: 6
    Last Post: 30-08-2008, 08:01
  2. how to make SAMBA with user accounts?
    By pparsniak in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 12-05-2008, 20:39
  3. SAMBA 2 will not run
    By rj.2001 in forum WL-500g Q&A
    Replies: 9
    Last Post: 15-08-2007, 11:54
  4. SAMBA: Share Rights
    By MHz in forum WL-500g Q&A
    Replies: 0
    Last Post: 04-01-2007, 13:41

Posting Permissions

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