Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Am trying to add a samba server to my home LAN. Several problems are emerging:

1) When I try to 'net view \<server> it appears to be routing to a machine outside the local network. Everything is in the 192.168.1 space and my 'ping <server>' is returning a system in the 208.67 space

2) When I try to 'net view \<IP address> of my samba server I get 'access denied'.

3) 2) When I try to 'net use * \<IP address>\<my folder> of my samba server with an account that I can use to SSH to the machine it doesn't recognize it.

Im new to the smb.conf settings so its clear that Im missing several steps.

When I do 'testparm' I get this:

Press enter to see a dump of your service definitions

    workgroup = HOME
    server string = Samba Server Version %v
    interfaces = lo, eth0
    passdb backend = tdbsam
    log file = /var/log/samba/log.%m
    max log size = 50
    os level = 33
    dns proxy = No
    wins support = Yes
    hosts allow = 192.168.1.,
    cups options = raw

    comment = Home Directories
    valid users = %S
    read only = No

    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No

Suggestions on what all is wrong? Am attemping connections from WinXP and Vista. OS is Fedora 9.

share|improve this question
up vote 1 down vote accepted

Samba server on linux in default configuration uses its own password manager.

This is probably to ensure no standard system users are allowed access to the filesystem being shared without you knowing who they are. Please don't quote me on this.

To get an account to be recognised you must add it to samba, use smbpasswd on the samba server.

Code: smbpasswd (username) Where username is the username you wish to connect to. This user must exist on the local system (ie: you can SSH into this user).

See: "man smbpasswd" for more details.

This should allow you access to your shares via the username you wish to use.

Note: you must be a privileged user on the machine to use smbpasswd.

share|improve this answer
smbpasswd allowed me to do the 'net use' command. Once I have a valid connection I can do the 'net view'. If I don't have a valid connection I still can't 'net view'. So we're sneaking up on the answer. – ethrbunny Oct 20 '11 at 12:46
what name reolution service are you using? do you have reverse DNS on your network? or relying on netbios or other windows based naming systems? – Drew Anderson Oct 20 '11 at 12:57
Also - can you be specific to the command you're using for "net use \\server\path" (can you copy and paste)? Unless the name of the server cannot be provided? Also be sure to use two backslashes to denote server.. Sorry for the poor help, I'm a linux person, not a windows person. – Drew Anderson Oct 20 '11 at 12:59
its a small home network so no fancy DNS.. command is 'net view \\lk' or 'net use * \\lk\bunny' – ethrbunny Oct 20 '11 at 13:36
The command you are using looks fine.. What is the result of "ping lk" on the windows machine? – Drew Anderson Oct 20 '11 at 13:43

Using `valid users = %S' seems not suitable. %S means "Name of the service" like the share name.

Take a look in at the man page of smb.conf, where all variable explained.

If you are not familar with pitfalls of intergrating the windows and unix world, you should read some helpfull documents:

For Standalone Server take a look here:

share|improve this answer
In this doc '…; towards the bottom there is a reference to this syntax. – ethrbunny Oct 20 '11 at 13:42
@ethrbunny Ok, thats right and this will run correctly. I miss that the home share is a special one. The sharename is the username, so this is ok. What you need is a lokal unis and samba user with the same name as the windowsuser on the external windows box. – f4m8 Oct 21 '11 at 6:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.