Re: [blfs-support] Setting Up "unix charset" in Samba Configuration File

2013-12-11 Thread Ken Moffat
On Wed, Dec 11, 2013 at 05:40:46PM -0500, Alan Feuerbacher wrote:
> 
> How can I tell if I have "ISO-8859-1 data in the files offered by 
> Samba"? As I understand it, Samba is a general file server, so in 
> general it should handle all manner of files; hence I should use UTF-8, no?
> 
 I assume you are intending to use Samba to share some of your own
(text) data with other boxes on your own network.  For modern data,
I assume UTF-8 will be correct.  If you have created data using the
limited set of symbols and accented letters in iso-8859-1 then the
reverse would apply.  If the data is all ASCII then either, but
UTF-8 will then allow you to use any character in the future.

 N.B. You mentioned an American locale, so I've ignored the
available variations for other character sets.  Also, I don't use
Samba (when I have to use windows, I use nfs to get data to/from my
main systems).  I'm just attempting to clarify the difference between
the two character sets.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Setting Up "unix charset" in Samba Configuration File

2013-12-11 Thread Alan Feuerbacher
On 12/11/2013 11:42 AM, Ken Moffat wrote:
> On Wed, Dec 11, 2013 at 12:46:09AM -0500, Alan Feuerbacher wrote:
>>
>> LC_ALL=en_US locale charmap -> ISO-8859-1
>> LC_ALL=en_US.iso88591 locale charmap-> ISO-8859-1
>> LC_ALL=en_US.utf8 locale charmap-> UTF-8
>>
>> So far as I understand, US English installations work with either of the
>> above charmap settings.
>>
>> Can someone explain the difference?
>
>   So long as you use _only_ ASCII characters or the few symbols and
> accented letters offered in it, ISO-8859-1 works fine.  Once people
> start using UTF-8 (like in my .sig), things break down.
>
>   If you look at iso-8859-1 on wikipedia it will show you the limited
> range of glyphs / codepoints it supports.  What that page *doesn't*
> mention is the encoding.  For that, look at the UTF-8 page if you
> are interested in the messy details.  The point is that ANY latin-1
> (ISO-8859-1) character with a value greater than 0x7F is represented
> by a single byte.
>
>   However, when I send you the same character in UTF-8 it will occupy
> more than one byte.  For example, the copyright sign is 0x00A9 - in
> UTF-8 that becomes 0xC2 0xA9 [ © ] if I've read the UTF-8 wiki page
> correctly.
>
>> And what I should set in the Samba
>> smb.conf file for "unix charset"?
>>
>   If you have ISO-8859-1 data in the files offered by Samba, then I
> guess you need to use 8859-1.  Otherwise, use UTF-8.  Windows has
> supported UTF-8 for a long time.

How can I tell if I have "ISO-8859-1 data in the files offered by 
Samba"? As I understand it, Samba is a general file server, so in 
general it should handle all manner of files; hence I should use UTF-8, no?

Alan

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Setting Up "unix charset" in Samba Configuration File

2013-12-11 Thread Ken Moffat
On Wed, Dec 11, 2013 at 12:46:09AM -0500, Alan Feuerbacher wrote:
> 
> LC_ALL=en_US locale charmap -> ISO-8859-1
> LC_ALL=en_US.iso88591 locale charmap-> ISO-8859-1
> LC_ALL=en_US.utf8 locale charmap-> UTF-8
> 
> So far as I understand, US English installations work with either of the
> above charmap settings.
> 
> Can someone explain the difference?

 So long as you use _only_ ASCII characters or the few symbols and
accented letters offered in it, ISO-8859-1 works fine.  Once people
start using UTF-8 (like in my .sig), things break down.

 If you look at iso-8859-1 on wikipedia it will show you the limited
range of glyphs / codepoints it supports.  What that page *doesn't*
mention is the encoding.  For that, look at the UTF-8 page if you
are interested in the messy details.  The point is that ANY latin-1
(ISO-8859-1) character with a value greater than 0x7F is represented
by a single byte.

 However, when I send you the same character in UTF-8 it will occupy
more than one byte.  For example, the copyright sign is 0x00A9 - in
UTF-8 that becomes 0xC2 0xA9 [ © ] if I've read the UTF-8 wiki page
correctly.

> And what I should set in the Samba
> smb.conf file for "unix charset"?
> 
 If you have ISO-8859-1 data in the files offered by Samba, then I
guess you need to use 8859-1.  Otherwise, use UTF-8.  Windows has
supported UTF-8 for a long time.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Setting Up "unix charset" in Samba Configuration File

2013-12-10 Thread Alan Feuerbacher
I'm a bit fuzzy on what you're supposed to use for the "unix charset" 
parameter
in the /etc/samba/smb.conf file. This is for installing Samba-4.1.2.

The BLFS book's instructions on setting up the Samba configuration file
smb.conf says to adjust that parameter appropriately for your installation,
and that this parameter "must be the same as the output of locale charmap
when executed with the LANG variable set to your preferred locale."

In the LFS book, section "7.13. The Bash Shell Startup Files", you figure
out the charmap for your locale and language. Accordingly, this is my setup:

echo $LANG  -> en_US.UTF-8
locale charmap  -> UTF-8

However:

LC_ALL=en_US locale charmap -> ISO-8859-1
LC_ALL=en_US.iso88591 locale charmap-> ISO-8859-1
LC_ALL=en_US.utf8 locale charmap-> UTF-8

So far as I understand, US English installations work with either of the
above charmap settings.

Can someone explain the difference? And what I should set in the Samba
smb.conf file for "unix charset"?

Alan

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: samba configuration

2006-06-13 Thread gena-j
Hi

Thanks for reading my questions.

Gena
On Tue, Jun 13, 2006 at 03:08:58PM -0500, Randy McMurchy wrote:
> [EMAIL PROTECTED] wrote these words on 06/13/06 14:47 CST:
> 
> > I wondered if anyone could help with a couple of questions I have in 
> > regards to setting up samba?
> 
> Sorry I can't be of more help, but I've found that searching the following
> 4 sources of information (all included in the Samba source tarball) has
> always provided the answers to any question I've ever had about Samba.
> 
> Using Samba, 2nd Edition; a popular book published by O'Reilly
> file:///usr/share/samba/swat/using_samba/toc.html
> 
> The Official Samba HOWTO and Reference Guide
> file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html
> 
> Samba-3 by Example
> file:///usr/share/samba/swat/help/Samba-Guide/index.html
> 
> The Samba-3 man Pages
> file:///usr/share/samba/swat/help/samba.7.html
> 
> -- 
> Randy
> 
> rmlscsi: [bogomips 1003.27] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
> [GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
> 15:06:00 up 32 days, 7:06, 1 user, load average: 0.66, 0.20, 0.07
> -- 
> http://linuxfromscratch.org/mailman/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
---end quoted text---

-- 
Wow! Linux From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: samba configuration

2006-06-13 Thread Randy McMurchy
[EMAIL PROTECTED] wrote these words on 06/13/06 14:47 CST:

> I wondered if anyone could help with a couple of questions I have in regards 
> to setting up samba?

Sorry I can't be of more help, but I've found that searching the following
4 sources of information (all included in the Samba source tarball) has
always provided the answers to any question I've ever had about Samba.

Using Samba, 2nd Edition; a popular book published by O'Reilly
file:///usr/share/samba/swat/using_samba/toc.html

The Official Samba HOWTO and Reference Guide
file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html

Samba-3 by Example
file:///usr/share/samba/swat/help/Samba-Guide/index.html

The Samba-3 man Pages
file:///usr/share/samba/swat/help/samba.7.html

-- 
Randy

rmlscsi: [bogomips 1003.27] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
15:06:00 up 32 days, 7:06, 1 user, load average: 0.66, 0.20, 0.07
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


samba configuration

2006-06-13 Thread gena-j
Hi All

I wondered if anyone could help with a couple of questions I have in regards to 
setting up samba?

The first isn't about samba but a group called "wheel" this vaguely seems 
familiar in a slackware install?  I found this reference to it in the samba 
mini HOWTO.

admin users = @wheel

; domain administrators
domain admin group = @wheel
domain admin users = root

Do I generate this group for my lfs box?  Presumingly, I could use any group 
name I wished but what is the wheel group for and what would be a good choice?

My second question is about the useradd command.  How do you set disabled-login 
and disabled-password?  For previous distributions I've used the guide:

http://dcfonline.sfu.ca/ying/linux/samba/part6.html

While this is a vulnerable configuration, it has served me well for a number of 
years, allowing me at home move files from the MS platform to the Linux 
platform within my home.  In preparation I've looked at the useradd man page as 
well as others attempting to see how to set nologin and no password switches 
but I can't see it for looking.

I've probably opened a can of worms here but I'd like to develope my 
understanding on what would be a suitable samba configuration and why?

Gena



-- 
Wow! Linux From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page