Mortimar
Group: Members
Posts: 4
Joined: Mar. 2007 |
|
Posted: April 23 2007,16:59 |
|
Here I am again to post my solution.
perhaps somebody can verify it.
First of all it seems to be that the nfs-Fileserver does not start correctly and that there are 3 files (exports, hosts.allow, hosts.deny all in /etc/) missing. So I build them: exports: (share-folder accessible by ...)
Quote | /public 192.168.2.*(rw,sync) *HOME(rw,sync)
|
hosts.allow: (not secure I know, bur it works)
Quote | ssh sshd : ALL@ALL : ALLOW ALL : 127.0.0.1 LOCAL : ALLOW ALL : ALL@ALL : DENY portmap: 192.168.2.0/255.255.255.0 *.Home : ALLOW |
hosts.deny: (a bit of security: just everything from outside is blocked)
Quote | ALL: ALL: spawn(echo Attempt from %h %a to %d at $(date) >> /var/log/deny.log) |
Then I had to add them and the samba-folder to .filetool.lst:
Quote | etc/exports etc/hosts.allow etc/hosts.deny etc/samba
|
Now change the bootlocal.sh to start nfs-server and restart samba and to mount the share-folders:
Quote | #SATA-Partition mounten mkdir /public chmod 777 /public mount /dev/sdb5 /public mkdir /VPC chmod 777 /VPC mount /dev/hda7 /VPC #NFS-Server starten portmap start #Samba reset smbd restart nmbd restart
|
And at last my samba configuration:
Quote | [global] workgroup = HOME ; server string = %h Server dns proxy = no log file = /var/log/log.%m max log size = 50 syslog = 0 encrypt passwords = yes security = share ; obey pam restrictions = yes socket options = TCP_NODELAY
#============================ Share Definitions ============================== [public] comment = Public browseable = yes path = /public public = yes guest ok = yes only guest = yes writeable = yes read only = no create mask = 0666 directory mask = 0777 [VPC] comment = Virtuelle Computer browseable = yes path = /VPC public = yes guest ok = yes only guest = yes writeable = yes read only = no create mask = 0666 directory mask = 0777 |
I know, that this is not very secure, but it works very fine.
Perhaps anyone knows an easier way or does know why nfs does not start correctly or that I don't need something or ...
Greetings from Germany, Mortimar.
|