Här kommer svaren du ville ha:
linux:~ # netstat -lnput
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3794/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 3480/portmap
tcp 0 0 0.0.0.0:19 0.0.0.0:* LISTEN 3987/xinetd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3552/pure-ftpd (SER
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3889/cupsd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 3987/xinetd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 4077/master
tcp 0 0 :::80 :::* LISTEN 13052/httpd2-prefor
tcp 0 0 :::21 :::* LISTEN 3552/pure-ftpd (SER
tcp 0 0 :::22 :::* LISTEN 3545/sshd
tcp 0 0 ::1:25 :::* LISTEN 4077/master
udp 0 0 192.168.0.251:137 0.0.0.0:* 23125/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 23125/nmbd
udp 0 0 192.168.0.251:138 0.0.0.0:* 23125/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 23125/nmbd
udp 0 0 0.0.0.0:111 0.0.0.0:* 3480/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 3889/cupsd
___________________________________________________
linux:~ # cat /etc/samba/smb.conf
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
# Date: 2004-10-21
[global]
workgroup = HEMMA
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
ldap suffix = dc=example,dc=com
wins support = no
[homes]
comment = Home Directories
valid users = %S
browseable = yes
read only = no
inherit acls = yes
[profiles]
comment = Network Profiles Service
path = %H
read only = no
store dos attributes = yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = no
inherit acls = yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = no
inherit acls = yes
[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600
[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
browseable = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
____________________________________________________
linux:~ # cat /etc/smb.conf
cat: /etc/smb.conf: No such file or directory
____________________________________________________
linux:~ # smbstatus
Samba version 3.0.9-2.1-SUSE
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
____________________________________________________
linux:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:22:40:21:7F
inet addr:192.168.0.251 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:22ff:fe40:217f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:86822 errors:0 dropped:0 overruns:0 frame:0
TX packets:73890 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29046932 (27.7 Mb) TX bytes:14358572 (13.6 Mb)
Interrupt:5 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7078 errors:0 dropped:0 overruns:0 frame:0
TX packets:7078 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:663171 (647.6 Kb) TX bytes:663171 (647.6 Kb)