Kevin Chan
2003-Jan-10 01:56 UTC
[Samba] How to set the directory tp allow all user can read,write and execute all the files inside that directory ?
Dear all, I would like to ask how to set a directory/file for ALL user can read,write and execute after the user-A put his file/program in this directory ? Thanks and regards, Kevin
Amit Sharma
2003-Jan-10 04:33 UTC
[Samba] The account is not authorized to login from this station
I have a simple smb.conf file: [global] hosts allow = ALL [tmp] user = root comment = temporary files path = /tmp read only = yes root = amits command:> net use f: \\smbserver\tmp <user>, <password> error:> System error 1240 has occured. The account is not authorized to login from this station I could test everything else successfully from the diagnosis.txt file. Thanks, -amit
Bradley W. Langhorst
2003-Jan-10 04:45 UTC
[Samba] The account is not authorized to login from this station
On Thu, 2003-01-09 at 23:33, Amit Sharma wrote:> I have a simple smb.conf file: > > [global] > hosts allow = ALL > > [tmp] > user = rootget rid of this line> comment = temporary files > path = /tmp > read only = yes > root = amitsthis 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 parameter). 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 stationyou 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) brad -- Bradley W. Langhorst <brad@langhorst.com>