allowing anonymous or guest access on samba shares

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hey friends,

I am trying to allow anonymous or guest to some of the samba shares and also to the samba printer on FC3. The SELinux is off and iptables are setup with the rules to allow samba access.On Windows 2003 guest access is enabled but whenever I try to access the samba shares from Windows Clients as guest I am not able to access those shares.Otherwise with the normal user account no problem in accessing any shares.

The error that is logged everytime I tried to access with the guest account.

[2006/04/17 13:22:23, 0] smbd/server.c:main(760)
  smbd version 3.0.10-1.fc3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/access.c:check_access(328)
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
  Denied connection from  (0.0.0.0)
[2006/04/17 13:22:28, 1] smbd/process.c:process_smb(1084)
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
  Connection denied from 0.0.0.0
[2006/04/17 13:22:28, 0] lib/util_sock.c:write_socket_data(430)
  write_socket_data: write failure. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] lib/util_sock.c:write_socket(455)
  write_socket: Error writing 5 bytes to socket 22: ERRNO = Connection reset by peer
[2006/04/17 13:22:28, 0] lib/util_sock.c:send_smb(647)
  Error writing 5 bytes to client. -1. (Connection reset by peer)
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] lib/util_sock.c:get_peer_addr(1000)
  getpeername failed. Error was Transport endpoint is not connected
[2006/04/17 13:22:28, 0] lib/util_sock.c:read_socket_data(384)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!
[2006/04/17 13:22:28, 0] auth/auth_util.c:make_server_info_info3(1134)
  make_server_info_info3: pdb_init_sam failed!


Below is my smb.conf file

[global]
  workgroup = next
  netbios name = server
  hosts allow = 192.168.1.  127.
  printcap name = /etc/printcap
  load printers = yes
  use sendfile = no
  printing = cups
  cups options = raw
  guest account = ftp
  log file = /var/log/samba/smbd.log
  max log size = 50
  security = domain
  password server = main2.next.com
  encrypt passwords = yes
  unix password sync = Yes
  passwd program = /usr/bin/passwd %u
  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
  username map = /etc/samba/smbusers
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  interfaces = 192.168.1.40/24 
  local master = no
  domain master = no
  preferred master = no
  domain logons = no
  hide unreadable = yes
  dns proxy = no
  idmap uid = 10000-20000
  idmap gid = 10000-20000
  template shell = /bin/false
  winbind use default domain = no
[homes]
   comment = Home Directories
   browseable = no
   writeable = yes
   hide dot files = yes
   veto files = /*MAILDIR*/
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   public = yes
   printer admin = root
   printing = cups
   use client driver = yes
[share2]
path=/share2
public = yes
writeable = yes
only guest = yes

Please let me know what wrong I am doing.

Thanks & Regards

Ankush Grover

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux