[Samba] smbclient scripts

2007-09-04 Thread Juliano Rodrigues
Hello,

Im trying:

if smbclient //server/service -U user -password test -c 'rmdir testedir'
then echo works
else echo dont works
fi

But if command rmdir is success or not i got works... Any ideias?

echo $? aways returns 0 too.

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


[Samba] unix charset = LOCALE

2005-07-12 Thread juliano

Andrew Bartlett said once that 'unix charset = LOCALE' means to force samba to 
read 'LANG=' from environment.


echo $LANG
en_US



cat /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="lat1-16"


When i restart smbd/nmbd all my files inside all shares change their names. Its 
looks an charset mis-match for me.

My clients are Windows XP SP2.

My clients are UTF8
My Samba reads charset from Linux
My Linux is 'en_US.UTF-8'

Everything is UTF8? or not?

Why its happens ?

Thanks for any help. Juliano Rodrigues.





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


Re: [Samba] charset issue

2005-07-11 Thread juliano

Mi wrote:




When i restart smbd/nmbd, all the files inside all shares change 
their names.
All the files are affected specially accent portuguese brazilian 
files. File names become a mess in whole samba server.



You probably have a character set mis-match between Samba, Unix and/or 
the clients?


I use iso-8859-1 on Linux, and have "unix charset = ISO8859-1" in 
smb.conf. You may also need to define "dos charset = ..." in smb.conf, 
but maybe not.


If you use UTF8 on the Linux side, you need "unix charset = UTF8" in 
smb.conf.



Hi,

Clients are default Windows XP keyborad type ABNT2, I suppose using 
unicode UTF8?


There is an charset mis-match below? Between Samba 3.0.4 and Linux RH 9.0?

Please, which values do you recommends for Portugues Brazil?

smb.conf
unix charset = LOCALE
display charset = UTF-8
dos charset = UTF-8


i18n
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="lat1-16"

Cheers, Juliano Krieger.

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


[Samba] charset issue

2005-07-11 Thread juliano

Hi,

When i restart smbd/nmbd, all the files inside all shares change their 
names.
All the files are affected specially accent portuguese brazilian files. 
File names become a mess in whole samba server.


1) Has anyone seen this kind of samba server behavior?
2) Im using samba 3.0.4, is there a recognized bug? , if i change to 
latest version will this issue be solved?


Any suggestions are highly appreciated, thanks.

Cheers,
Juliano Krieger

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


[Samba] charset - big problem - 3.0.4

2005-07-07 Thread juliano
This problem runs over 1 (One) complete year. Im getting crazy with 
this. Please, i ask for help here.


Server: RH 9.0 + Samba PDC 3.0.4  + LDAP
Clients: WinXP  (SP3)  Brazil - Portuguese ABNT2

Everything works fine here. My server uptime is 4 months now... 
Everything works perfectly, but:


When i restart samba daemon (/etc/init.d/smb restart) i lost all files 
accent charsets. File names become a totally mess for WinXP clients.


Notes:

1) If I never restart samba the problem never occurs.
2) WinXP save and read files correctly, there are no problems. The mess 
is only when restarting smbd/nmbd
3) All accent files change their names, including windows profiles files 
causing a big mess...


--

smb.conf

unix charset = LOCALE
display charset = UTF-8
dos charset = UTF-8


i18n
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="lat1-16"

--

Questions:
This is a recognized samba bug from 3.0.4 ?
What  can i do about it ?

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


[Samba] login and WinNT

2005-05-19 Thread Juliano Medeiros Coimbra
Hello!
I was wondering if it's possible to make Windows NT and Samba 3 work 
togheter. I found an old question with the same problem I have.
Samba 3 is not authenticating WinNT machines. My smb.conf is:

[global]
	workgroup = DESQ-TESTE
	server string = Teste (Samba %v)
	interfaces = 143.106.19.25/255.255.255.192, 127.
	bind interfaces only = Yes
	encrypt passwords = No
	password server = kappa.desq.feq.unicamp.br
	passdb backend = smbpasswd
	root directory = /
	passwd program = /usr/bin/passwd
	password level = 8
	username level = 4
	log file = /var/log/samba/log.%m
	max log size = 500
	min protocol = NT1
	announce version = 4.2
	name resolve order = host wins lmhosts bcast
	time server = Yes
	server signing = auto
	load printers = No
	logon path = 
	logon home = 
	preferred master = Yes
	domain master = Yes
	dns proxy = No
	wins server = 143.106.19.2
	ldap ssl = no
	socket address = 143.106.19.25
	NIS homedir = Yes
	invalid users = root, toor, operator, tty, kmem, bin, daemon, games, news, man, sshd, smmsp, mailnul, bind, proxy, pop, www
	hosts allow = 143.106.19.0/255.255.255.192, 143.106.19.64/255.255.255.192, 143.106.123.0/255.255.255.192
	printing = bsd
	print command = lpr -r -P'%p' %s
	lpq command = lpq -P'%p'
	lprm command = lprm -P'%p' %j
	hide dot files = No
	veto files = /*.mp3/*.wmv/

[tmp]
comment = Temporary file space
path = /tmp/share
force user = nobody
read only = No
create mask = 0777
guest only = Yes
guest ok = Yes
fstype = FAT
[homes]
comment = Users area
browseable = No
The log produced by one WinNT machine is (just a piece):
 smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User juliano !
[2005/05/19 13:09:19, 0] auth/pampass.c:smb_pam_passcheck(810)
 smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User zemp !
[2005/05/19 13:09:23, 0] auth/pampass.c:smb_pam_passcheck(810)
 smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User zemp !
[2005/05/19 13:40:01, 0] auth/pampass.c:smb_pam_passcheck(810)
 smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User juliano !
[2005/05/19 13:52:12, 0] auth/pampass.c:smb_pam_passcheck(810)
 smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User juliano !
Thanks for any help
Juliano
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] login on WinNT and 9X

2005-05-10 Thread Juliano Medeiros Coimbra
Hi, I am a new member of this list and I couldn't find and message to 
help me in the Samba archives.
We're migrating from a FreeBSD 4.0 server with Samba2 to a FreeBSD 5.3 
server with Samba 3.0.12_1,1.
These too servers are  on the same network, but workgoups are different 
(old server is DESQ-Samba and the new one is NDESQ).
Our network have Windows 95, 98, NT, 2k and XP!
This old server uses the master.passwd to authenticate users, I tried to 
do the same with the new one, but I couldn't get a passwd backend (plain 
text) to do this, so I moved to smbpasswd backend and now everything 
works fine, except for Windows 9X and NT - users cannot login to any share.
Theres is no firewall in the new server (yet). I am attaching my 
smb.conf file to your apreciattion.
If there is a reason to ignore this problem, considering the old server 
will go down when the new one gets 100% fine, please, tell me.

best regards!
Juliano
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/05/09 13:53:22

# Global parameters
[global]
workgroup = NDESQ
server string = Teste (Samba %v)
interfaces = 143.106.19.25/255.255.255.192, 127.
bind interfaces only = Yes
encrypt passwords = No
update encrypted = Yes
password server = kappa.desq.feq.unicamp.br
passdb backend = smbpasswd
root directory = /
passwd program = /usr/bin/passwd %u
password level = 8
log file = /var/log/samba/log.%m
max log size = 500
name resolve order = host wins lmhosts bcast
time server = Yes
server signing = auto
load printers = No
logon path = 
logon home = 
preferred master = No
local master = No
domain master = No
dns proxy = No
wins server = 143.106.19.2
ldap ssl = no
socket address = 143.106.19.25
NIS homedir = Yes
invalid users = root, toor, operator, tty, kmem, bin, daemon, games, 
news, man, sshd, smmsp, mailnul, bind, proxy, pop, www, nobody
hosts allow = 143.106.19.0/255.255.255.192, 
143.106.19.64/255.255.255.192, 143.106.123.0/255.255.255.192
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[tmp]
comment = Temporary file space
path = /tmp/share
force user = nobody
read only = No
create mask = 0777
guest only = Yes
guest ok = Yes
fstype = FAT

[homes]
comment = Homes directories
read only = No
veto files = /*.mp3/*.wmv/
browseable = No
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] login on WinNT and 9X

2005-05-09 Thread Juliano Medeiros Coimbra
Hi, I am a new member of this list and I couldn't find and message to 
help me in the Samba archives.
We're migrating from a FreeBSD 4.0 server with Samba2 to a FreeBSD 5.3 
server with Samba 3.0.12_1,1.
These too servers are  on the same network, but workgoups are different 
(old server is DESQ-Samba and the new one is NDESQ).
Our network have Windows 95, 98, NT, 2k and XP!
This old server uses the master.passwd to authenticate users, I tried to 
do the same with the new one, but I couldn't get a passwd backend (plain 
text) to do this, so I moved to smbpasswd backend and now everything 
works fine, except for Windows 9X and NT - users cannot login to any share.
Theres is no firewall in the new server (yet). I am attaching my 
smb.conf file to your apreciattion.
If there is a reason to ignore this problem, considering the old server 
will go down when the new one gets 100% fine, please, tell me.

best regards!
Juliano
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/05/06 17:20:02

# Global parameters
[global]
workgroup = NDESQ
server string = Teste (Samba %v)
interfaces = 143.106.19.25/255.255.255.192, 127.
bind interfaces only = Yes
encrypt passwords = No
update encrypted = Yes
password server = kappa.desq.feq.unicamp.br
passdb backend = smbpasswd
root directory = /
passwd program = /usr/bin/passwd %u
password level = 8
log file = /var/log/samba/log.%m
max log size = 500
announce as = WfW
name resolve order = host wins lmhosts bcast
time server = Yes
server signing = auto
load printers = No
preferred master = No
local master = No
domain master = No
dns proxy = No
wins server = 143.106.19.2
ldap ssl = no
socket address = 143.106.19.25
NIS homedir = Yes
invalid users = root, toor, operator, tty, kmem, bin, daemon, games, 
news, man, sshd, smmsp, mailnul, bind, proxy, pop, www, nobody
hosts allow = 143.106.19.0/255.255.255.192, 
143.106.19.64/255.255.255.192, 143.106.123.0/255.255.255.192
printing = bsd
print command = lpr -r -P'%p' %s
lpq command = lpq -P'%p'
lprm command = lprm -P'%p' %j

[tmp]
comment = Temporary file space
path = /tmp/share
force user = nobody
read only = No
create mask = 0777
guest only = Yes
guest ok = Yes
fstype = FAT

[homes]
comment = Homes directories
read only = No
veto files = /*.mp3/*.wmv/
browseable = No
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] net groupmap list errors

2004-07-09 Thread Juliano Krieger
Hello,
Weeks ago i mapped my nt groups to posix groups, all works fine. My 
samba PDC works fine today but i cant see my group list definition 
anymore...

SAMBA 3.0.4 (my own compilation)
samba-client-3.0.4-0.5.1 rpm
RH 9.0 (2.6.4)
# net groupmap list
[2004/07/05 15:30:14, 0] param/loadparm.c:map_parameter(2423)
Unknown parameter encountered: "client code page"
[2004/07/05 15:30:14, 0] param/loadparm.c:lp_do_parameter(3119)
Ignoring unknown parameter "client code page"
[2004/07/05 15:30:14, 0] param/loadparm.c:map_parameter(2423)
Unknown parameter encountered: "character set"
[2004/07/05 15:30:14, 0] param/loadparm.c:lp_do_parameter(3119)
Ignoring unknown parameter "character set"
[2004/07/05 15:30:14, 0] param/loadparm.c:map_parameter(2423)
Unknown parameter encountered: "domain admin group"
[2004/07/05 15:30:14, 0] param/loadparm.c:lp_do_parameter(3119)
Ignoring unknown parameter "domain admin group"
[2004/07/05 15:30:14, 0] param/loadparm.c:map_parameter(2423)
Unknown parameter encountered: "domain admin users"
[2004/07/05 15:30:14, 0] param/loadparm.c:lp_do_parameter(3119)
Ignoring unknown parameter "domain admin users"
System Operators (S-1-5-32-549) -> -1
Replicators (S-1-5-32-552) -> -1
Guests (S-1-5-32-546) -> -1
Power Users (S-1-5-32-547) -> -1
Print Operators (S-1-5-32-550) -> -1
Administrators (S-1-5-32-544) -> -1
Domain Admins (S-1-5-21-3088386051-2538255017-882613707-512) -> -1
Domain Guests (S-1-5-21-3088386051-2538255017-882613707-514) -> -1
Account Operators (S-1-5-32-548) -> -1
Domain Users (S-1-5-21-3088386051-2538255017-882613707-513) -> -1
Backup Operators (S-1-5-32-551) -> -1
Users (S-1-5-32-545) -> -1
What is wrong in my system env?
Thank You, Juliano.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba