Re: [Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2 TL11SP1 system

2011-08-01 Thread GALVAN, Jean-Pierre
Hello.
Thank you very much for this information.
It solved the problem.
:-)

-Message d'origine-
De : TAKAHASHI Motonobu [mailto:mo...@monyo.com] 
Envoyé : samedi 9 juillet 2011 07:22
À : GALVAN, Jean-Pierre
Cc : youngjoh...@163.com; samba@lists.samba.org
Objet : Re: [Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2 
TL11SP1 system

 -Message d'origine-
 De : youngjohn04 [mailto:youngjoh...@163.com] Envoyé : mercredi 6 
 juillet 2011 23:11 Did you specify username map = option in your 
 smb.conf file?

From: GALVAN, Jean-Pierre jean-pierre.gal...@sage.com
Date: Thu, 7 Jul 2011 12:08:51 +

 Yes I did.
 Here's my smb.conf file (I removed the shared objetcs) :

(snip)

 And here's my smbusers file :
 
 root = jpgalvan

You have to specify workgroup\jpgalvan style in smbusers file instead of 
jpgalvan. 

* After Samba 3.0.8, workgroup\username style was recommended and
  after Samba 3.0.23b, workgroup\username style was required.

Also you have to create smbuser for root.

Please set log level = 3 (or above) and search check_ntlm_password
in your log file if you do not work yet.

---
TAKAHASHI Motonobu mo...@samba.gr.jp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 and ntfs

2011-07-11 Thread Jean-Pierre

vasishath kaushal wrote:


ey there!am using samba4 alpha16 on red hat enterprise linux 6.1. The active
directory is running without any problems. But i am having a problem related
to ntfs sharing. I have shared an ntfs drive from my pc via samba. The probem
is that i am not able to browse my share with any account except for
administrator account.


You did not tell how your ntfs filesystem is mounted.
With ntfs-3g the filesystem is generally mounted with
ownership and permissions disabled, hence all files
appear as owned by root (or a specific user).



 plz note that i can browse an ext3 or 4 partition from any user. The problem
is ONLY with ntfs. I have tried changing permissions from windows itself but
the changes disappear as soon as i click apply. plz help me.. Thanks !


You can get the same ownership and permissions on ntfs as on
ext3/ext4, even Posix ACLs, by mounting with adequate options.
See 
http://www.tuxera.com/community/ntfs-3g-advanced/ownership-and-permissions/#options


This will however not set the exact same ACLs as if the
ntfs filesystem would have been mounted on the Windows client.

Jean-Pierre

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


Re: [Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2 TL11SP1 system

2011-07-07 Thread GALVAN, Jean-Pierre
Hello.
Yes I did.
Here's my smb.conf file (I removed the shared objetcs) :

# Global parameters
[global]
workgroup = Removed
netbios name = AYDAIX05
server string = AYDAIX05 Samba Server %v
security = DOMAIN
encrypt passwords = Yes
password server = Removed
username map = /etc/smbusers
smb passwd file = /etc/smbpasswd
log file = /opt/freeware/log/log.%m
max log size = 50
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
domain master = No
dns proxy = No
wins server = Removed


And here's my smbusers file :

root = jpgalvan


So I'd like to see root home directory for my Windows user jpgalvan

All I see in Windows explorer is jpgalvan home directory

...


-Message d'origine-
De : youngjohn04 [mailto:youngjoh...@163.com] 
Envoyé : mercredi 6 juillet 2011 23:11
À : GALVAN, Jean-Pierre; samba@lists.samba.org
Objet : RE: [Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2 
TL11SP1 system

Did you specify username map = option in your smb.conf file?


-Original Message-
From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org]
On Behalf Of GALVAN, Jean-Pierre
Sent: Wednesday, July 06, 2011 10:22 PM
To: samba@lists.samba.org
Subject: [Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2
TL11SP1 system

Hello.
I don't know if you're the person who can help me.
I've got a problem with Samba 3.5.8.1 on a AIX 5.3 TL11SP1 machine.

I installed and configured Samba. It worked fine. I use a DOMAIN member 
security mode.
The join into our domain worked well.

Any users from a Windows computer is able to access to the AIX machine.

But the only problem I have is this one :

-  The use of smbusers file is not working : when I try to specify
an other unix account for a windows user, the Windows computer sees the 
original account.

-  = It is just as if smbusers file was not  used ...

Can you help me on this ?
Thank you in advance.
Best regards.
Jean-Pierre GALVAN.

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


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


[Samba] Problem using smbusers with samba 3.5.8.1 on AIX 5.2 TL11SP1 system

2011-07-06 Thread GALVAN, Jean-Pierre
Hello.
I don't know if you're the person who can help me.
I've got a problem with Samba 3.5.8.1 on a AIX 5.3 TL11SP1 machine.

I installed and configured Samba. It worked fine. I use a DOMAIN member 
security mode.
The join into our domain worked well.

Any users from a Windows computer is able to access to the AIX machine.

But the only problem I have is this one :

-  The use of smbusers file is not working : when I try to specify an 
other unix account for a windows user, the Windows computer sees the original 
account.

-  = It is just as if smbusers file was not  used ...

Can you help me on this ?
Thank you in advance.
Best regards.
Jean-Pierre GALVAN.

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


Re: [Samba] compressed file VFS

2011-03-31 Thread Jean-Pierre

Andreas Moroder wrote:

A similar question has been posted here (with an answer):

http://askubuntu.com/questions/5212/can-i-transparently-compress-some-files-on-a-samba-share



HTH


Hello,

AFAIK the FUSE filesystems have in common the problem that they are read
only. I have to write to this share too.


Except at least ntfs-3g which is read + write (see
the link posted yesterday). It is fully compatible
with Windows, which may be useful in a Samba environment.


My idea was a samba VFS that, when it finds a compressed file with a
certain extension ( say .gzvfs ) allows a normal read access to this
file but allows to read and write to other files


For ntfs the compression is transparent. No specific
extension or change needed in applications or scripts.

Regards

Jean-Pierre




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


Re: [Samba] compressed file VFS

2011-03-31 Thread Jean-Pierre

Marcello Romani wrote:



Windows XP (and later) and almost all Linux file managers support
viewing a compressed file (e.g. zip archive) as a normal folder. This
feature lives inside the file manager application and doesn't require
any server-side support.



For ntfs the compression is transparent. No specific
extension or change needed in applications or scripts.

Regards

Jean-Pierre



I recently read somewhere about a user that was exporting via samba an
ntfs volume created under windows that had the compress option activated.
When writing to the share via samba he could create files but not
overwrite them. Reason is ntfs-3g driver doesn't support overwriting
transparently compressed files. He solved the issue by mounting the
volume under Windows and deselecting the compress option.
I'm sorry but I don't remember if that post was recent, and can't find
it againt right now.


Well, it was not supported until support was provided,
this is a very common situation.

Here is the link again :

http://www.tuxera.com/community/ntfs-3g-advanced/data-compression/

Regards

Jean-Pierre

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


Re: [Samba] compressed file VFS

2011-03-30 Thread Jean-Pierre

John Drescher wrote:

On Wed, Mar 30, 2011 at 9:41 AM, Andreas Moroder
andreas.moro...@sb-brixen.it  wrote:

Hallo,

we have a clinical system that generate lot of files that once written are
never changed. This file consume lot of disk and tape space*, so my idea was
to compress this files. The problem is that it can happen, that the users
have to open this files later.

Is there a VFS module for samba that show gzipped** read only files as if
they were standard files ?



On top of the fuse modules mentioned a previous link, there are also 3
filesystems under linux that support compression. btrfs, reiser4 and
zfs. All like the fuse modules are considered experimental and I would
avoid reiser4 since the main developer Hans Reiser is in jail.


And ntfs (ntfs-3g)

Regards

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


Re: [Samba] Map multiple NT users to the same Unix user with tdbsam

2011-03-02 Thread Jean-Pierre

Christian Aichinger wrote:

Hi!

I have an NTFS partition on an USB HDD mounted with uid=1000, gid=1000.
Several users should be able to backup to that partition via Samba shares.
They should be able to log in each with their own user/pass. I'd rather


With ntfs-3g you can have standard Posix ownership and protections.
A simple way to do that is to use the mount option permissions
instead of forcing uid and gid.

You can even define a per-user SID to record the permissions with
the same parameters as you would get if the ntfs device were
plugged into the user Windows workstation.

See 
http://www.tuxera.com/community/ntfs-3g-advanced/ownership-and-permissions/



not have a separate unix account (/etc/passwd) for each of them (plus
that runs into trouble with the uid==gid==1000 problem on the NTFS
partition; I'd rather not set the whole NTFS disk world-writeable to
circumvent that). And I'd really like to avoid ldap, sticking with tdbsam.

What I wish I could do was having multiple user/password combinations on
the Windows side and map them all to one user on the unix side.


Having individual protections imply having different accounts, of course.

Jean-Pierre

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


Re: [Samba] Cannot join domain with error: ads_connect: No logon servers

2007-12-18 Thread Jean-Pierre Gillione
 20202020202020202020202000E40053
  answers  80 char 2 .d   hex 32202020202020202020202020201B64
  answers  90 char .S2hex 00533220202020202020202020202020
  answers  a0 char    hex 1CE4
  answers  b0 char    hex 
  answers  c0 char    hex 
  answers  d0 char .   hex 00
[2007/12/18 11:19:12, 3] libsmb/namequery_dc.c:rpc_dc_name(194)
  rpc_dc_name: Returning DC LEOPARD (10.0.0.10) for domain S2
[2007/12/18 11:19:12, 5] libads/dns.c:sitename_fetch(674)
  sitename_fetch: No stored sitename for LEOPARD.SAFARI.INSIDE
[2007/12/18 11:19:12, 5] libsmb/namequery.c:saf_fetch(133)
  saf_fetch: failed to find server for LEOPARD.SAFARI.INSIDE domain
[2007/12/18 11:19:12, 3] libsmb/namequery.c:get_dc_list(1489)
  get_dc_list: preferred server list: , 10.0.0.10
[2007/12/18 11:19:12, 5] libads/dns.c:sitename_fetch(674)
  sitename_fetch: No stored sitename for LEOPARD.SAFARI.INSIDE
[2007/12/18 11:19:12, 5] libsmb/namequery.c:get_dc_list(1577)
  get_dc_list: negative entry 10.0.0.10 removed from DC list
[2007/12/18 11:19:12, 4] libsmb/namequery.c:get_dc_list(1599)
  get_dc_list: returning 0 ip addresses in an ordered list
[2007/12/18 11:19:12, 4] libsmb/namequery.c:get_dc_list(1600)
  get_dc_list:
[2007/12/18 11:19:12, 5] libsmb/namequery.c:saf_fetch(133)
  saf_fetch: failed to find server for LEOPARD.SAFARI.INSIDE domain
[2007/12/18 11:19:12, 3] libsmb/namequery.c:get_dc_list(1489)
  get_dc_list: preferred server list: , 10.0.0.10
[2007/12/18 11:19:12, 5] libads/dns.c:sitename_fetch(674)
  sitename_fetch: No stored sitename for LEOPARD.SAFARI.INSIDE
[2007/12/18 11:19:12, 5] libsmb/namequery.c:get_dc_list(1577)
  get_dc_list: negative entry 10.0.0.10 removed from DC list
[2007/12/18 11:19:12, 4] libsmb/namequery.c:get_dc_list(1599)
  get_dc_list: returning 0 ip addresses in an unordered list
[2007/12/18 11:19:12, 4] libsmb/namequery.c:get_dc_list(1600)
  get_dc_list:
[2007/12/18 11:19:12, 0] utils/net_ads.c:ads_startup_int(286)
  ads_connect: No logon servers
[2007/12/18 11:19:12, 1] utils/net_ads.c:net_ads_join(1470)
  error on ads_startup: No logon servers
Failed to join domain: No logon servers
[2007/12/18 11:19:12, 2] utils/net.c:main(1036)
  return code = -1


On Dec 18, 2007 8:13 AM, Carlos Ramos [EMAIL PROTECTED] wrote:
 there is a switch to specify the server name. I was having a similar
 problem that was solved specifying it's name.
 try:

 net -d ads join -s your_server_dns

 don't forget to add your_server_dns to /etc/hosts


 On Dec 18, 2007 3:20 AM, Jean-Pierre Gillione [EMAIL PROTECTED] wrote:
  Hello All,
 
  I am trying to get a Gentoo Linux system to join a domain run by a Mac
  OS X Server.  I have set up kerberos and ldap as per the instructions
  in the Samba documentation and I am able to log in to the system using
  the info (getent finds the users, and kinit successfully connects),
  but I can't get Samba to join the domain and authenticate the users.
  When I run net ads join I get:
 
  [2007/12/17 19:16:07, 0] utils/net_ads.c:ads_startup_int(286)
ads_connect: No logon servers
  Failed to join domain: No logon servers
 
  I have tried searching google for this, but have found no response.
  Does anybody know what the problem is?
 
  Thanks for any help.
  --
  To unsubscribe from this list go to the following URL and read the
  instructions:  https://lists.samba.org/mailman/listinfo/samba
 

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


[Samba] Cannot join domain with error: ads_connect: No logon servers

2007-12-17 Thread Jean-Pierre Gillione
Hello All,

I am trying to get a Gentoo Linux system to join a domain run by a Mac
OS X Server.  I have set up kerberos and ldap as per the instructions
in the Samba documentation and I am able to log in to the system using
the info (getent finds the users, and kinit successfully connects),
but I can't get Samba to join the domain and authenticate the users.
When I run net ads join I get:

[2007/12/17 19:16:07, 0] utils/net_ads.c:ads_startup_int(286)
  ads_connect: No logon servers
Failed to join domain: No logon servers

I have tried searching google for this, but have found no response.
Does anybody know what the problem is?

Thanks for any help.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba