4Fermer6
Yoshi NoirLe 30/06/2010 à 17:32
smb.conf
[global]
    ; General server settings
    netbios name = yoshinoir
    server string = LeChainChomp
    workgroup = yoshinoir
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    interfaces = lo, eth0
    bind interfaces only = true

    passdb backend = tdbsam
    security = user
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = no

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

[printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

[MyFiles]
    path = /home/samba/
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = yoshinoir
    force group = yoshinoir

ps.txt
  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 migration/0
    4 ?        00:00:02 ksoftirqd/0
    5 ?        00:00:00 watchdog/0
    6 ?        00:00:00 events/0
    7 ?        00:00:00 cpuset
    8 ?        00:00:00 khelper
    9 ?        00:00:00 netns
   10 ?        00:00:00 async/mgr
   11 ?        00:00:00 pm
   12 ?        00:00:00 sync_supers
   13 ?        00:00:00 bdi-default
   14 ?        00:00:00 kintegrityd/0
   15 ?        00:00:00 kblockd/0
   16 ?        00:00:00 kacpid
   17 ?        00:00:00 kacpi_notify
   18 ?        00:00:00 kacpi_hotplug
   19 ?        00:00:01 ata/0
   20 ?        00:00:00 ata_aux
   21 ?        00:00:00 ksuspend_usbd
   22 ?        00:00:00 khubd
   23 ?        00:00:00 kseriod
   24 ?        00:00:00 kmmcd
   27 ?        00:00:00 khungtaskd
   28 ?        00:00:00 kswapd0
   29 ?        00:00:00 ksmd
   30 ?        00:00:00 aio/0
   31 ?        00:00:00 ecryptfs-kthrea
   32 ?        00:00:00 crypto/0
   36 ?        00:00:03 scsi_eh_0
   37 ?        00:00:00 scsi_eh_1
   40 ?        00:00:00 kstriped
   41 ?        00:00:00 kmpathd/0
   42 ?        00:00:00 kmpath_handlerd
   43 ?        00:00:00 ksnapd
   44 ?        00:00:00 kondemand/0
   45 ?        00:00:00 kconservative/0
  185 ?        00:00:00 scsi_eh_2
  186 ?        00:00:01 usb-storage
  192 ?        00:00:00 v86d
  193 ?        00:00:00 cqueue
  269 ?        00:00:11 mount.ntfs
  276 ?        00:00:03 loop0
  278 ?        00:00:00 jbd2/loop0-8
  279 ?        00:00:00 ext4-dio-unwrit
  327 ?        00:00:00 upstart-udev-br
  329 ?        00:00:00 flush-8:16
  330 ?        00:00:00 udevd
  537 ?        00:00:00 kgameportd
  624 ?        00:00:00 flush-7:0
  659 ?        00:00:00 smbd
  687 ?        00:00:00 rsyslogd
  706 ?        00:00:00 sshd
  755 tty4     00:00:00 getty
  760 tty5     00:00:00 getty
  774 tty2     00:00:00 getty
  775 tty3     00:00:00 getty
  777 tty6     00:00:00 getty
  778 ?        00:00:00 acpid
  784 ?        00:00:00 cron
  785 ?        00:00:00 atd
  832 ?        00:00:00 dbus-daemon
  841 ?        00:00:00 gdm-binary
  923 ?        00:00:00 smbd
 1047 ?        00:00:00 avahi-daemon
 1048 ?        00:00:00 avahi-daemon
 1050 ?        00:00:00 NetworkManager
 1052 ?        00:00:00 modem-manager
 1057 ?        00:00:00 wpa_supplicant
 1058 ?        00:00:00 dhclient
 1062 ?        00:00:00 console-kit-dae
 1133 ?        00:00:00 exim4
 1135 ?        00:00:00 gdm-simple-slav
 1168 tty7     00:04:39 Xorg
 1197 ?        00:00:00 hddtemp
 1209 ?        00:00:00 samba
 1228 ?        00:00:00 winbindd
 1231 ?        00:00:00 samba
 1232 ?        00:00:00 samba
 1233 ?        00:00:00 samba
 1239 ?        00:00:00 samba
 1260 ?        00:00:00 cupsd
 1262 ?        00:00:00 winbindd
 1312 ?        00:00:00 fcron
 1373 ?        00:00:00 nmbd
 1400 ?        00:00:00 gdm-session-wor
 1438 ?        00:00:00 timidity
 1443 tty1     00:00:00 getty
 1451 ?        00:00:00 gnome-session
 1486 ?        00:00:00 ssh-agent
 1489 ?        00:00:00 dbus-launch
 1490 ?        00:00:01 dbus-daemon
 1494 ?        00:00:04 gconfd-2
 1500 ?        00:00:00 gnome-keyring-d
 1503 ?        00:00:02 gnome-settings-
 1505 ?        00:00:00 gvfsd
 1510 ?        00:00:00 gvfs-fuse-daemo
 1514 ?        00:00:05 metacity
 1519 ?        00:00:05 pulseaudio
 1521 ?        00:00:00 rtkit-daemon
 1525 ?        00:00:00 polkitd
 1526 ?        00:00:01 vino-server
 1528 ?        00:00:00 gnome-power-man
 1530 ?        00:00:06 gnome-panel
 1531 ?        00:00:28 nautilus
 1532 ?        00:00:00 nm-applet
 1534 ?        00:00:02 cloudsn
 1536 ?        00:00:01 python
 1537 ?        00:00:00 bluetooth-apple
 1538 ?        00:00:00 polkit-gnome-au
 1545 ?        00:00:00 upowerd
 1585 ?        00:00:00 hald
 1586 ?        00:00:00 hald-runner
 1612 ?        00:00:00 gconf-helper
 1613 ?        00:00:00 hald-addon-inpu
 1626 ?        00:00:03 hald-addon-stor
 1628 ?        00:00:00 hald-addon-stor
 1630 ?        00:00:00 hald-addon-acpi
 1632 ?        00:00:00 gnome-screensav
 1646 ?        00:00:00 gvfs-gdu-volume
 1648 ?        00:00:00 udisks-daemon
 1649 ?        00:00:03 udisks-daemon
 1651 ?        00:00:00 gvfs-gphoto2-vo
 1653 ?        00:00:00 gvfs-afc-volume
 1654 ?        00:00:00 gdu-notificatio
 1656 ?        00:00:00 gvfsd-trash
 1658 ?        00:00:00 bonobo-activati
 1661 pts/0    00:00:00 bash
 1674 ?        00:00:01 notify-osd
 1685 ?        00:00:22 geyes_applet2
 1690 ?        00:00:13 clock-applet
 1691 ?        00:00:02 wnck-applet
 1692 ?        00:00:03 sensors-applet
 1693 ?        00:00:04 GlobalMenu.Pane
 1704 ?        00:00:00 gvfsd-burn
 1709 ?        00:00:00 usbhid_resumer
 1718 ?        00:00:00 scsi_eh_3
 1719 ?        00:00:01 usb-storage
 1729 ?        00:00:00 bluetooth
 1732 ?        00:00:00 bluetoothd
 1733 ?        00:00:00 hald-addon-rfki
 1747 ?        00:00:00 krfcommd
 1754 ?        00:00:00 python
 1781 ?        00:00:00 hald-addon-stor
 1793 ?        00:00:22 ubuntuone-syncd
 1824 ?        00:00:11 evolution
 1829 ?        00:00:00 evolution-data-
 1832 ?        00:00:00 evolution-excha
 1858 ?        00:00:00 evolution-alarm
 1908 ?        00:00:00 update-notifier
 1954 ?        00:00:00 system-service-
 1990 ?        00:00:36 wish8.5
 2005 ?        00:00:00 gvfsd-http
 2007 ?        00:00:00 firefox
 2013 ?        00:00:00 run-mozilla.sh
 2017 ?        00:08:05 firefox-bin
 2160 ?        00:00:00 scsi_eh_5
 2161 ?        00:00:00 usb-storage
 2238 ?        00:00:00 hald-addon-stor
 2323 ?        00:00:00 gvfsd-metadata
 2331 ?        00:00:01 mount.ntfs
 2361 ?        00:00:50 kvirc
 2766 ?        00:02:12 plugin-containe
 2802 ?        00:00:45 googleearth-bin
 2988 ?        00:00:00 Yasst.sh
 2996 ?        00:00:27 Yasst
 3188 ?        00:00:00 scsi_eh_7
 3189 ?        00:00:00 usb-storage
 3199 ?        00:00:00 udevd
 3200 ?        00:00:00 udevd
 3216 ?        00:00:00 hald-addon-stor
 3227 ?        00:00:00 hald-addon-stor
 3232 ?        00:00:00 kjournald
 3255 ?        00:00:11 gnome-nettool
 3569 pts/0    00:00:00 ps