[Samba] The account is not authorized to login from this station

Bradley W. Langhorst brad at langhorst.com
Fri Jan 10 04:45:01 GMT 2003

On Thu, 2003-01-09 at 23:33, Amit Sharma wrote:
> I have a simple smb.conf file:
> [global]
>         hosts allow = ALL
>         [tmp]
>                 user = root
get rid of this line

>                 comment = temporary files 
>                 path = /tmp
>                 read only = yes
>                 root = amits
this makes no sense - get rid of this too

root (G)
        Synonym for root directory".
root dir (G)
        Synonym for root directory".
root directory (G)
        The server will chroot() (i.e. Change its root directory) to
        this directory on startup. This is not strictly necessary for
        secure operation. Even without it the server will deny access to
        files not in one of the service entries. It may also check for,
        and deny access to, soft links to other parts of the filesystem,
        or attempts to use ".." in file names to access other
        directories (depending on the setting of the wide links
        Adding a root directory entry other than "/" adds an extra level
        of security, but at a price. It absolutely ensures that no
        access is given to files not in the sub-tree specified in the
        root directory option, including some files needed for complete
        operation of the server. To maintain full operability of the
        server you will need to mirror some system files into the root
        directory tree. In particular you will need to mirror
        /etc/passwd (or a subset of it), and any binaries or
        configuration files needed for printing (if required). The set
        of files that must be mirrored is operating system dependent.
        Default: root directory = /
        Example: root directory = /homes/smb

> command:> net use f: \\smbserver\tmp <user>, <password>
> error:>	System error 1240 has occured.
> 		The account is not authorized to login from this station

you need to have  <user> in both /etc/passwd and /etc/smbpasswd for 
logons to work.
make sure you set the password with
smbpasswd <user> so you know what it is.

(the samba password does not have to be the same as the unix password)

Bradley W. Langhorst <brad at langhorst.com>

More information about the samba mailing list