Linux/Samba/Public Share/Old Method

From Omnia
Jump to navigation Jump to search

OLD METHODS

Quick File Server - SHARE

Summary: Guest access file server (no password)

Install Samba:

yum install samba samba-client

Create a share folder:

mkdir /files
chown nobody:nobody files

Samba configuration files:

/etc/samba/smb.conf

Modify samba configuration and add our file share:

[global]
  workgroup = WORKGROUP
  netbios name = DATA
  server string = Guest File Server

  security = share
  # guest account = root
  guest account = nobody

  follow symlinks = yes
  wide links = yes
  unix extensions = no

  # Disable printers:
  load printers = no
  printing = bsd
  printcap name = /dev/null
  disable spoolss = yes
  show add printer wizard = no

[pub]
  comment = Guest access share
  path = /files
  browseable = yes
  # read only = yes  (default)
  guest ok = yes

Note: to make writable 'read only = no'

Restart Samba:

service smb restart

Root Guest File Server

This is what kmg uses:

[global]
  workgroup = WORKGROUP
  netbios name = KMANAGE
  server string = Guest File Server

  security = share
  guest account = root
  #guest account = nobody

  follow symlinks = yes
  wide links = yes
  unix extensions = no

  # Disable printers:
  load printers = no
  printing = bsd
  printcap name = /dev/null
  disable spoolss = yes
  show add printer wizard = no

[pub]
  comment = Guest access share
  path = /newpu
  browseable = yes
  # read only = yes  (default)
  read only = no
  guest ok = yes

Share

Samba Guest Public Share: (doesn't ask for a password)

[global]
  #default# workgroup = WORKGROUP
  netbios name = FILESERVER
  server string = Guest File Server

  #default# idmap config * : backend = tdb

  security = SHARE
  guest account = root
  #guest account = nobody

[pub]
  comment = Guest access share
  path = /pub
  #default# browseable = yes
  read only = No
  guest ok = Yes

smbusers:

nobody = guest
$ testparm smb.conf:
WARNING: The security=share option is deprecated

---

Warning: Doesn't work on Windows 7+

"The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you."

Maybe due to policy? - Microsoft network client: Digitally sign communications (always) - secpol.msc - Security Settings/Local Policies/Security Options [1]

Maybe due to firewall? - This problem occurs because the network firewall filters Kerberos traffic. To resolve this problem, configure the network firewall so that TCP port 88 and UDP port 88 are not blocked for either domain. [2]

Maybe due to domain computer connecting to non domain system?