[Samba] Sambauser can't use his homeshare but other shares - smb.conf

2009-10-06 Thread Mario Constanti
Ok, here is my smb.conf-File.

 

If i use the [homes]-Section,
I can mount my home-share only if
I first connected to an other share.

 

If I use the [Mario]-Section,
I can mount it on the first run.

 

 

[global]

 

   workgroup = example

   netbios name = mounteverest

   password server = 192.168.2.200

   security = ads

   realm = EXAMPLE.LOCAL

   encrypt passwords = yes

 

   local master =no

   os level = 20

   domain master = no

   preferred master = no

 

   time server = Yes

   keepalive = 30

   create mask = 0740

   directory mask = 0750

   log file = /var/log/samba/log.%m

   log level = 3 passdb:5 auth:10 winbind:2

   nt acl support = yes

 

   winbind separator = +

   idmap backend = idmap_rid:example=1-1

   idmap gid = 1-1

   idmap uid = 1-1

   template shell = /bin/bash

   winbind use default domain = yes

   winbind enum users = yes

   winbind enum groups = yes

# von mario hinzugefuegt um 18:42 am 19.09.09

   winbind nested groups = yes

   wins server = 192.168.2.200

 

# von mario hinzugefuegt um 18:42 am 19.09.09

   template homedir = /data/shares/home/%U

   template shell = /bin/bash

 

#[homes]

#comment = Home Directories

# path = /data/shares/home/%U

# force group = @EXAMPLE+dir_home

#read only = No

#create mask = 0600

#directory mask = 0700

#browseable = No

 

[mario]

path = /data/shares/home/mario

valid users = EXAMPLE+mario

force group = @EXAMPLE+dir_home

read only = No

create mask = 0600

force create mode = 0700

 

 

[nobackup]

path = /data/shares/nobackup

valid users = @EXAMPLE+dir_nobackup

  force group = @EXAMPLE+dir_nobackup

read only = No

create mask = 0750

force create mode = 0770

force directory mode = 0770

 

[public]

path = /data/shares/public

valid users = @EXAMPLE+dir_public

force group = @EXAMPLE+dir_public

read only = No

create mask = 0750

force create mode = 0770

force directory mode = 0770

 

[security]

path = /data/shares/security

valid users = @EXAMPLE+dir_security

force group = @EXAMPLE+dir_security

read only = No

create mask = 0750

force create mode = 0770

force directory mode = 0770

 

 

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Sambauser can't use his homeshare but other shares - smb.conf

2009-10-06 Thread Mario Constanti
Hi Dale,
Hi Samba-List,

i have tried your suggestion but it doesn't work.
I've got the same error.

My posix permissions on the filesystem are correct.
Here is my #ls -lha output:

r...@mounteverest:/data/shares# ls -lah
total 53K
drwxr-xr-x 14 administrator root  4.0K 2009-10-01 09:40 .
drwxr-xr-x  4 root  root  4.0K 2009-09-19 09:32 ..
drwxr-x---  3 root  root  4.0K 2009-09-18 11:45 admin
drwxr-x---  4 root  root  4.0K 2009-09-19 09:07 backup
drwx--  3 administrator root  1.0K 2009-04-22 17:17 ebs
drwxr-s--- 24 administrator dir_home  4.0K 2009-10-01 11:30 home
drwxrws--- 25 administrator dir_nobackup  4.0K 2009-10-05 16:49 nobackup
drwxrws--- 11 administrator dir_public4.0K 2009-03-17 08:20 public
drwxrws--- 19 administrator dir_security  4.0K 2007-05-19 08:06 security

administrator und the dir_*-Groups are from the Active Directory.

Here something from my logfile:

[2009/10/07 07:22:37, 3] smbd/password.c:register_vuid(304)
  User name: nobody Real name: nobody
[2009/10/07 07:22:37, 3] smbd/password.c:register_vuid(325)
  UNIX uid 65534 is UNIX user nobody, and will be vuid 101
...
[2009/10/07 07:22:37, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2009/10/07 07:22:37, 3] smbd/service.c:make_connection_snum(1033)
  winxpnotebook (192.168.2.26) connect to service IPC$ initially as user nobody 
(uid=65534, gid=65534) (pid 8613)

Any other ideas?




-Ursprüngliche Nachricht-
Von: Dale Schroeder [mailto:d...@briannassaladdressing.com] 
Gesendet: Dienstag, 6. Oktober 2009 15:32
An: Mario Constanti
Betreff: Re: [Samba] Sambauser can't use his homeshare but other shares - 
smb.conf

Mario,

I would try this in [homes]
1. Do not use the force group parameter.
2. Add valid users = EXAMPLE+%S

You shouldn't have to declare the path again because you already set it 
in template homedir,
but you can leave it if desired.

Your other settings appear to be quite reasonable, and should not cause 
any problems.
I have assumed that your posix permissions are correct for EXAMPLE+mario and
EXAMPLE+dir_home to navigate the entire /data/shares/home path.

Dale

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Sambauser can't use their homeshare but other shares - STRANGE

2009-10-05 Thread Mario Constanti
 

Hello,

 

i am new to the Group and i hope, someone has a idea for my problem.

 

We have a Windows Small Business Server 2003 (with Active Directory)
which is the PDC in our domain.

We also have an Ubuntu 8.04.3 LTS system with Samba 3.0.28a

 

The Ubuntu-System is our Fileserver and we have joined it to the domain.

So i can successfully login with my user from the ActiveDirectory on the
Ubuntu-System.

On our ubuntu-System we have some shares like [homes], [public],
[nobackup] and so on.

 

So this is our Problem:

If i tried to logon from a Windows XP to my homes-share, it doesn't
work.

I've got the loginscreen to enter my username and password, but it
doesn't work.

In the Logfiles on the ubuntu-Server I see the following entry: (will
also in the File log.home_share.txt)

 

smbd/password.c:register_vuid(304)

  User name: nobody Real name: nobody

 smbd/password.c:register_vuid(325)

  UNIX uid 65534 is UNIX user nobody, and will be vuid 101

...

smbd/service.c:make_connection_snum(1033)

  winxpnotebook (192.168.2.15) connect to service IPC$ initially as user
nobody (uid=65534, gid=65534) (pid 8500)

 

When I tried to use the public-share it works and I see in the
logfiles the following entry: (will also in the File
log.public_share.txt)

 

  Got NTLMSSP neg_flags=0xa2088205

 smbd/password.c:register_vuid(304)

  User name: EXAMPLE+mario   Real name: 

 smbd/password.c:register_vuid(325)

  UNIX uid 11206 is UNIX user EXAMPLE+mario, and will be vuid 103

...

smbd/service.c:make_connection_snum(1033)

  winxpnotebook (192.168.2.15) connect to service public initially as
user EXAMPLE+mario (uid=11206, gid=11150) (pid 8376)

 

When my connection to the public-share is still alive and I trie then
to use my home-share with the same
settings from my first home-share-connection, it works.

And in the logfiles I see the following entry: (will also in the File
log.home_share_after_public.txt)

 

smbd/service.c:make_connection_snum(1033)

  winxpnotebook (192.168.2.15) connect to service mario initially as
user EXAMPLE+mario (uid=11206, gid=11636) (pid 8642)

 

Any ideas?

 

After this, I created a new share with the name of my username called
[mario].

And then I reboot my Windows-XP machine and I tried to share my new
[homes] and it works.

And in the logfiles I see the following entry: (will also in the File
log.home_mario_extra_share.txt)

 

  Got NTLMSSP neg_flags=0xa2088205

 smbd/password.c:register_vuid(304)

  User name: EXAMPLE+mario Real name: 

 smbd/password.c:register_vuid(325)

  UNIX uid 11206 is UNIX user EXAMPLE+mario, and will be vuid 103

...

smbd/service.c:make_connection_snum(1033)

  winxpnotebook (192.168.2.15) connect to service mario initially as
user EXAMPLE+mario (uid=11206, gid=11150) (pid 8376)

 

 

I hope someone has a idea of my problem.

I will now attach the smb.conf and the logfiles.

 

In the smb.conf I have uncommented the [homes]-Section and have created
the [mario]-Section.

This is the status, where my home-Share would work.

Logfile for this: log.home_mario_extra_share.txt

 

If I disable the [Mario]-Share and enable the default [homes]-Section,
then it wouldn't work

Logfiles for this: log.home_share.txt, log.public_shares.txt,
log._home_share_after_public.txt

 

So, I will post each logfile in an extra Mail, because
the Message will be to big.

 

 

So I hope, someone has an idea for this problem and can help me to solve
it.

Thanks for help,

Greetings from Germany

Mario

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Sambauser can't use his homeshare but other shares - Logfile2

2009-10-05 Thread Mario Constanti
 

[2009/10/01 09:51:30, 5] auth/auth_util.c:make_user_info_map(161)
  make_user_info_map: Mapping user []\[] from workstation [WINXPNOTEBOOK]
[2009/10/01 09:51:30, 5] auth/auth_util.c:make_user_info(75)
  attempting to make a user_info for  ()
[2009/10/01 09:51:30, 5] auth/auth_util.c:make_user_info(85)
  making strings for 's user_info struct
[2009/10/01 09:51:30, 5] auth/auth_util.c:make_user_info(117)
  making blobs for 's user_info struct
[2009/10/01 09:51:30, 10] auth/auth_util.c:make_user_info(135)
  made an encrypted user_info for  ()
[2009/10/01 09:51:30, 3] auth/auth.c:check_ntlm_password(221)
  check_ntlm_password:  Checking password for unmapped user 
[]...@[winxpnotebook] with the new password interface
[2009/10/01 09:51:30, 3] auth/auth.c:check_ntlm_password(224)
  check_ntlm_password:  mapped user is: [example]...@[winxpnotebook]
[2009/10/01 09:51:30, 10] auth/auth.c:check_ntlm_password(233)
  check_ntlm_password: auth_context challenge created by random
[2009/10/01 09:51:30, 10] auth/auth.c:check_ntlm_password(235)
  challenge is: 
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] auth/auth.c:check_ntlm_password(270)
  check_ntlm_password: guest authentication for user [] succeeded
[2009/10/01 09:51:30, 5] auth/auth.c:check_ntlm_password(309)
  check_ntlm_password:  guest authentication for user [] - [] - [nobody] 
succeeded
[2009/10/01 09:51:30, 5] auth/auth_util.c:free_user_info(2056)
  attempting to free (and zero) a user_info structure
[2009/10/01 09:51:30, 10] auth/auth_util.c:free_user_info(2060)
  structure was created for 
[2009/10/01 09:51:30, 10] auth/auth_util.c:create_local_nt_token(844)
  Create local NT token for S-1-5-21-2090443268-3284995344-604914335-501
[2009/10/01 09:51:30, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107)
  fetch gid from cache 1 - S-1-5-32-544
[2009/10/01 09:51:30, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107)
  fetch gid from cache 10001 - S-1-5-32-545
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID 
[S-1-5-21-2090443268-3284995344-604914335-501]
[2009/10/01 09:51:30, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2009/10/01 09:51:30, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-32-546]
[2009/10/01 09:51:30, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-1-0 to gid, ignoring it
[2009/10/01 09:51:30, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-5-2 to gid, ignoring it
[2009/10/01 09:51:30, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-5-32-546 to gid, ignoring it
[2009/10/01 09:51:30, 10] auth/auth_util.c:debug_nt_user_token(454)
  NT user token of user S-1-5-21-2090443268-3284995344-604914335-501
  contains 4 SIDs
  SID[  0]: S-1-5-21-2090443268-3284995344-604914335-501
  SID[  1]: S-1-1-0
  SID[  2]: S-1-5-2
  SID[  3]: S-1-5-32-546
  SE_PRIV  0x0 0x0 0x0 0x0
[2009/10/01 09:51:30, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(338)
  NTLMSSP Sign/Seal - Initialising with flags:
[2009/10/01 09:51:30, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
  Got NTLMSSP neg_flags=0xa2088205
[2009/10/01 09:51:30, 3] smbd/password.c:register_vuid(304)
  User name: nobody Real name: nobody
[2009/10/01 09:51:30, 3] smbd/password.c:register_vuid(325)
  UNIX uid 65534 is UNIX user nobody, and will be vuid 101
[2009/10/01 09:51:30, 3] smbd/process.c:process_smb(1069)
  Transaction 3 of length 86
[2009/10/01 09:51:30, 3] smbd/process.c:switch_message(927)
  switch message SMBtconX (pid 8340) conn 0x0
[2009/10/01 09:51:30, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 09:51:30, 3] 

[Samba] Sambauser can't use his homeshare but other shares - Logfile3

2009-10-05 Thread Mario Constanti
 

[2009/10/01 10:17:32, 5] auth/auth_util.c:make_user_info_map(161)
  make_user_info_map: Mapping user []\[] from workstation [WINXPNOTEBOOK]
[2009/10/01 10:17:32, 5] auth/auth_util.c:make_user_info(75)
  attempting to make a user_info for  ()
[2009/10/01 10:17:32, 5] auth/auth_util.c:make_user_info(85)
  making strings for 's user_info struct
[2009/10/01 10:17:32, 5] auth/auth_util.c:make_user_info(117)
  making blobs for 's user_info struct
[2009/10/01 10:17:32, 10] auth/auth_util.c:make_user_info(135)
  made an encrypted user_info for  ()
[2009/10/01 10:17:32, 3] auth/auth.c:check_ntlm_password(221)
  check_ntlm_password:  Checking password for unmapped user 
[]...@[winxpnotebook] with the new password interface
[2009/10/01 10:17:32, 3] auth/auth.c:check_ntlm_password(224)
  check_ntlm_password:  mapped user is: [example]...@[winxpnotebook]
[2009/10/01 10:17:32, 10] auth/auth.c:check_ntlm_password(233)
  check_ntlm_password: auth_context challenge created by random
[2009/10/01 10:17:32, 10] auth/auth.c:check_ntlm_password(235)
  challenge is: 
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] auth/auth.c:check_ntlm_password(270)
  check_ntlm_password: guest authentication for user [] succeeded
[2009/10/01 10:17:32, 5] auth/auth.c:check_ntlm_password(309)
  check_ntlm_password:  guest authentication for user [] - [] - [nobody] 
succeeded
[2009/10/01 10:17:32, 5] auth/auth_util.c:free_user_info(2056)
  attempting to free (and zero) a user_info structure
[2009/10/01 10:17:32, 10] auth/auth_util.c:free_user_info(2060)
  structure was created for 
[2009/10/01 10:17:32, 10] auth/auth_util.c:create_local_nt_token(844)
  Create local NT token for S-1-5-21-2090443268-3284995344-604914335-501
[2009/10/01 10:17:32, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107)
  fetch gid from cache 1 - S-1-5-32-544
[2009/10/01 10:17:32, 3] passdb/lookup_sid.c:fetch_gid_from_cache(1107)
  fetch gid from cache 10001 - S-1-5-32-545
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID 
[S-1-5-21-2090443268-3284995344-604914335-501]
[2009/10/01 10:17:32, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2009/10/01 10:17:32, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-32-546]
[2009/10/01 10:17:32, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-1-0 to gid, ignoring it
[2009/10/01 10:17:32, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-5-2 to gid, ignoring it
[2009/10/01 10:17:32, 10] auth/auth_util.c:create_local_token(1045)
  Could not convert SID S-1-5-32-546 to gid, ignoring it
[2009/10/01 10:17:32, 10] auth/auth_util.c:debug_nt_user_token(454)
  NT user token of user S-1-5-21-2090443268-3284995344-604914335-501
  contains 4 SIDs
  SID[  0]: S-1-5-21-2090443268-3284995344-604914335-501
  SID[  1]: S-1-1-0
  SID[  2]: S-1-5-2
  SID[  3]: S-1-5-32-546
  SE_PRIV  0x0 0x0 0x0 0x0
[2009/10/01 10:17:32, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(338)
  NTLMSSP Sign/Seal - Initialising with flags:
[2009/10/01 10:17:32, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(63)
  Got NTLMSSP neg_flags=0xa2088205
[2009/10/01 10:17:32, 3] smbd/password.c:register_vuid(304)
  User name: nobody Real name: nobody
[2009/10/01 10:17:32, 3] smbd/password.c:register_vuid(325)
  UNIX uid 65534 is UNIX user nobody, and will be vuid 105
[2009/10/01 10:17:32, 3] smbd/process.c:process_smb(1069)
  Transaction 799 of length 86
[2009/10/01 10:17:32, 3] smbd/process.c:switch_message(927)
  switch message SMBtconX (pid 8642) conn 0x0
[2009/10/01 10:17:32, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/01 10:17:32, 3] 

[Samba] Sambauser can't use his homeshare but other shares - smb.conf

2009-10-05 Thread Mario Constanti
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba