Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2010-12-10 22:35:27

  kuebk - Użytkownik

kuebk
Użytkownik
Zarejestrowany: 2010-11-27

Samba - ukrycie profili

Witam,

Kod:

[global]
    ; General server settings
    netbios name = Debian
    server string = Samba PDC
    workgroup = ELOSZKA
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    guest ok = no
    passdb backend = tdbsam
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    passwd chat debug = true
    passwd chat = *Enter*new*UNIX*password:* %n\n *Retype*new*UNIX*password:* %n\n *passwd:*password*updated*successfully*

    add user script = useradd -m %u
    add machine script = useradd -d /dev/null -g machines -c "Konto maszyny %I" -s /bin/false %u


    local master = yes
    os level = 64
    domain master = yes
    preferred master = yes
    domain logons = yes
    logon home = \\%L\%U
    ;logon path = \\%L\%U\profilek
    logon drive = Z:
    ;logon script = netlogon.bat

    idmap uid = 15000-20000
    idmap gid = 15000-20000

    name resolve order = wins hosts bcast
    wins support = yes

    printing = CUPS
    printcap name = CUPS

;    debug level = 10
    debug timestamp = no
    log file = /var/log/samba/%I.log
    log level = 3
    ;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]
    comment = Home Directiories
    browseable = no
    writeable = yes
    valid users = %S
    create mode = 0644
    directory mode = 0775

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
[netlogon]
    comment = Network Logon Service
    path = /home/samba/netlogon
    writeable = no
    share modes = no
    browseable = no

; NOTE: Again - only needed if you're running a primary domain controller.
[Profiles]
    path = /home/%U/profile
    browseable = no
    read only = no
    guest ok = no
    create mask = 0600
    directory mask = 0700

Problem mam taki ze chciabylm aby pod dyskiem Z: nie byly wyswietlane dane mojego profilu tylko po prostu pliki danego uzytkownika. Googluje i probuje to ustawic tak z 2 godziny juz i nie chce mi to wyjsc, dlatego tez zwracam sie do was o pomoc.

Dzieki.

[b]Aktualizacja:[/b]
Po prawie calej sobocie szukania wreszcie dalem rade, ustawilem to tak:

Kod:

[global]
    logon home = \\%L\%U
    logon path = \\%L\profiles
    logon drive = Z:

[profiles]
    path = /home/samba/profiles/%U/%a
    browseable = no
    writeable = yes
    create mask = 0600
    directory mask = 0700
    profile acls = yes

[profiles.V2]
    copy = profiles

I wreszcie dalo rade. :)

Ostatnio edytowany przez kuebk (2010-12-11 17:18:55)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.006 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00016 SET CHARSET latin2
0.00006 SET NAMES latin2
0.00114 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.17.75.138' WHERE u.id=1
0.00058 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.17.75.138', 1732282821)
0.00053 SELECT * FROM punbb_online WHERE logged<1732282521
0.00054 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=17900 AND t.moved_to IS NULL
0.00006 SELECT search_for, replace_with FROM punbb_censoring
0.00109 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=17900 ORDER BY p.id LIMIT 0,25
0.00084 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=17900
Total query time: 0.005 s