Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
not going to define a new user, neither in linux nor for samba. consider there's only one user other than root in the server. i want to be able to access the shared directory via windows and want not to be forced to create another user, maybe for samba with the same name/pass.
is it possible?

What I have tried:

tried configuring items in smb.conf. but didn't found any difference.
Posted
Updated 21-Jan-18 23:19pm

1 solution

That is only possible with shares that allow guest access.

Example smb.conf:
[global]
    map to guest = bad user
    # Use this instead of "bad user" with Samba 4.2 and later.
    #map to guest = bad password

    # Local user name for guest access.
    # Must have read permission on all guest shares and write permission
    #  on guest shares that should be writable.
    guest account = nobody

    # Other global options

[name_of_share]
    path = /path/to/share/
    read only = no
    guest ok = yes

    # Other share options

But note that this allows everybody that can connect to your server accessing the share(s) and you don't have user tracking (know who has accessed, created, or modified files).

To use password protected access (highly recommended), you have to create at least one Samba user with a corresponding Linux user, allow that user access to shares, and use it for connecting from Windows.
 
Share this answer
 
Comments
ilostmyid2 25-Feb-18 11:11am    
indeed i need authentication, but not to define a separate user/pass than the defined user for the linux system itself. i mean how to avoid separation and have not to define separate users for samba?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900