Re: [Tiff] libtiff | tiffcrop produces wrong output when 'raw' and 'rgb' parameters are used with jpeg compression (parameters have reverse effect) (#228)

2024-03-15 Thread miguel medalha via Tiff
>> I tested the YCbCr output cases and cannot reproduce the problem regarding 
>> wrong colors, so I conclude that was fixed already.
>> I did not test the RGB output cases as those did not seem to be at issue 
>> (other than the documentation part).

I would like to test it again but every attempt to use jpeg compression with 
tiffcrop gives the following error:

JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG.
out-raw.tif: Error, can't write strip 0.
: Unable to write contiguous strip data for page 0.

The command line I used is the following:

tiffcrop -c jpeg:raw file-in.tif file-out.tif

tiffcp is now giving the same error, by the way:

JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG.


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] working through wontfix-unmaintained bugs

2024-03-14 Thread miguel medalha via Tiff
>> I am absolutely not keen on getting tiffcrop back.

Neither am I. I don't think it is really necessary.

>> My proposal will be to reactivate and maintain only the tools needed by 
>> someone, especially those mentioned by you (fax2ps, tiff2bw, tiffdither, 
>> tiff2ps, tiff2pdf, tiffcp). 

I agree. From my point of view, tiffcp, tiff2ps, and tiff2pdf are the most 
needed.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] www.libtiff.org is restored

2024-02-03 Thread miguel medalha via Tiff


> There should be no reason for tiff2ps in 2024….but I agree that having a
high quality, open source, TIFF->PDF solution benefits everyone.

I can agree with that and I think that the effort should be on tiff2pdf.

> Given the advances in PDF since the last time that tool was touched, it
would probably be more 
> reasonable to see if we could partner up with some other solution to keep
that supported into the future.   
> Alternatively, maybe this is an opportunity to improve the PDF output in
something like GraphicsMagick - Bob??

As they are now, neither ImageMagick nor GraphicsMagick are a match for the
functionality of tiff2pdf. Having easy control over the image position on
the page (i.e. page size and horizontal and vertical offsets) and
Distiller-like capabilities, such as inclusion of notes, bookmarks, and
metadata in general, on the fly are essential for my kind of work. Speed is
also important when processing thousands of pages.
 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] www.libtiff.org is restored

2024-02-03 Thread miguel medalha via Tiff
> (...) It would be beneficial for his project (and others) if 
> the deprecated/removed libtiff utilities are restored (with security 
> fixes), if even as a different project from libtiff itself.

I strongly agree, in particular the 'tiff2ps' and 'tiff2pdf' tools. They are
immensely useful in the post-processing workflows of mass digitization of
documents. I know no other tools with their exact capabilities.


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] libtiff 4.6.0 is released

2023-09-14 Thread miguel medalha
> > I am really unclear on whether there will be fallout from tools removal.


> I have scripts that use tiff2ps. ImageMagick can convert tiffs to ps, but
some versions of ImageMagick shift or scale the image. tiff2ps works.

> I think that with a ps-based workflow, tiff2ps is the best tools to
convert tiffs to eps.


I agree and I would extend the above considerations to tiff2pdf.

 

>> I don't mind building tiff2ps from source, but I'm hoping that if
something breaks, patches to tiff2ps.c will be accepted.

I would say the same, extending it to tiff2pdf again. Instead of killing the
tools, invite people to address their problems and accept the eventual
patches. Meaning, be willing to move the tools from "unsupported" to "tools"
again if support arises.

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] libtiff 4.6.0 is released

2023-09-14 Thread miguel medalha
 

>> William - are you (and others) still working with a PS-based workflow?
Why not move ot something more modern (aka PDF)?

 

I may even agree with that somewhat, but tiff2pdf was also deprecated. And
don't point me to ImageMagick and such like, it's not the same thing, some
of the functionality or mode of working of tiff2pdf cannot be found
elsewhere that I know of.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Remove TIFFCROP from LibTiff

2023-04-06 Thread miguel medalha
> I'm leaning towards releasing 4.5.1, with the current state of master, as the 
> last version shipping with tiffcrop, tiff2pdf and tiff2ps 
> being built with autoconf/cmake, with a warning in the release notes noting 
> they will be moved into archive/tools for 4.6.0.

If that is indeed the final decision, can you please point me to other command 
line tools performing the same functions as tiff2ps and tiff2pdf? Please don't 
answer "ImageMagick". I very much cherish and heavily use it, but in this case 
it's just not the same.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Remove TIFFCROP from LibTiff + tiff2ps & tiff2pdf ?

2023-04-04 Thread miguel medalha
> tiff2ps and tiff2pdf seem to be also good candidates for moving into archive 
> as they have a number of reported security related issues and a significant 
> code size. Their functionality is (at least mostly) covered by the convert 
> utility of ImageMagick.

We use tiff2pdf and tiff2ps intensively as part of the post-processing of 
digitized books, newspapers, and other documents. They are fast and effective, 
and do exactly what we need. Seeing them go would be a real loss.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] tiffcrop tool ~ JPEG compression options produce wrong output

2023-02-07 Thread miguel medalha

> A quick check tells me tiffcp does suffer from this bug:

I don't think so. tiffcp's default is YCbCr  and the "r" option specifies RGB, 
which is exactly what 'tiffinfo' is showing.

-c jpeg[:opts]  compress output with JPEG encoding
#set compression quality level (0-100, default 75)
routput color image as RGB rather than YCbCr


> ❯ tiffcp -c jpeg -r 16 ./libtiff/test/images/quad-lzw-compat.tiff 
> /tmp/test.tif

> ❯ tiffinfo /tmp/test.tif
>   Compression Scheme: JPEG
>   Photometric Interpretation: YCbCr


> ❯ tiffcp -c jpeg:r -r 16 ./libtiff/test/images/quad-lzw-compat.tiff 
> /tmp/test.tif
> 
> ❯ tiffinfo /tmp/test.tif
>   Compression Scheme: JPEG
>   Photometric Interpretation: RGB color


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] tiffcrop tool ~ JPEG compression options produce wrong output

2023-02-06 Thread miguel medalha
The tiffcrop  is inverting RGB and YCbCr output when using jpeg compression.

The stated YCbCr default (no format specified) works correctly:

'tiffcrop -c jpeg infile.tiff outfile.tif'  the output is a YCbCr 
file (default behavior)
'tiffinfo outfile.tif'   'Photometric 
Interpretation: YCbCr'

But if we request a specific mode using the proposed 'rgb' and 'raw' jpeg 
options:

'tiffcrop -c jpeg:raw infile.tiff outfile.tif'  the output is a RGB file
'tiffinfo outfile.tif''Photometric Interpretation: 
RGB color'

'tiffcrop -c jpeg:rgb infile.tiff outfile.tif'  the output is a YCbCr 
file
'tiffinfo outfile.tif'  'Photometric Interpretation: 
YCbCr'

When we request RGB a YCbCr file is produced, when YCbCr is requested a RGB 
file is produced.

This has been reported 2 years ago as Issue #228, but still not addressed. Is 
this considered of lesser importance? I would certainly fix it if I knew how to 
do it...

I know that the work on libtiff is voluntary, which I very much appreciate and 
am grateful for. I just thought I would leave a reminder here, in case the 
issue had just been inadvertently buried in time.

tiffcp does not suffer from this drawback.

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] Fatal error with JPEG compression

2022-11-12 Thread Miguel Medalha
While trying to compress any TIFF with JPEG compression, using either tiffcp or 
tiffcrop, the following error messages appear:

 

JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG

JPEGSetupEncode: RowsPerStrip must be multiple of 16 for JPEG

 

(this depends on whether we want a RGB or YCbCr file)

 

Unable to write contiguous strip data for page 0. (tiffcrop)

Error, can't write strip 0. (tiffcp)

 

I tried all kinds of tiffs from several origins and the result is the same, I 
cannot use JPEG compression. Does anyone have any clues on why this is 
happening?

 

I am doing a cmake build of libtiff, using turbojpeg as the jpeg lib, and 
everything goes perfectly except for this result.

 

Thank you.

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Building libtiff with WEBP support

2022-10-05 Thread Miguel Medalha
> Based on the error you're getting, I assume you're building against 
> static WebP? Otherwise it should stay happily hidden behind the DLL façade.

Yes, I am building against static WebP.


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Building libtiff with WEBP support

2022-10-05 Thread Miguel Medalha
I found a temporary way of doing this without editing the source.

 

On cmake command line:

 

-DCMAKE_PROJECT_INCLUDE=my_include_file

 

‘my_include_file’ has the following contents:

 

link_libraries("C:/build/lib/libsharpyuv.lib")

 

This is not very elegant, because it inserts the library as a dependency of all 
targets, not just the ‘tiff’ one, but for now it seems to work without 
undesirable secondary effects.

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [Tiff] Building libtiff with WEBP support

2022-10-05 Thread Miguel Medalha
Of course this:

 

if(WEBP_SUPPORT)

  target_link_libraries(tiff PRIVATE WebP::WebP)

  string(APPEND tiff_requires_private " libwebp")

  target_link_libraries(${PROJECT_NAME} PRIVATE "C:/build/lib/libsharpyuv.lib")

endif()

 

can be simplified to this:

 

if(WEBP_SUPPORT)

  target_link_libraries(tiff PRIVATE WebP::WebP C:/build/lib/libsharpyuv.lib)

  string(APPEND tiff_requires_private " libwebp")

endif()

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] Building libtiff with WEBP support

2022-10-05 Thread Miguel Medalha
Salutations to all

 

Due to some recent changes in the WEBP source code, building the dynamic 
libtiff library with WEBP support started giving the following error messages:

 

libwebp.lib(picture_csp_enc.obj) : error LNK2001: unresolved external symbol 
SharpYuvConvert [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]

libwebp.lib(picture_csp_enc.obj) : error LNK2001: unresolved external symbol 
SharpYuvGetConversionMatrix [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]

libwebp.lib(picture_csp_enc.obj) : error LNK2001: unresolved external symbol 
SharpYuvInit [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]

C:\Build\bin\libtiff\libtiff\Release\tiff.dll : fatal error LNK1120: 3 
unresolved externals [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]

 

This is related to the introduction of a new library in WEBP, libsharpyuv.lib.

 

I solved the problem by appending the following to the end of 
libtiff/libtiff/CMakeLists.txt:

 

if(WEBP_SUPPORT)

  target_link_libraries(${PROJECT_NAME} PRIVATE "C:/build/lib/libsharpyuv.lib")

endif()

 

or including the line in the relevant WEBP section (starting with line 148):

 

if(WEBP_SUPPORT)

  target_link_libraries(tiff PRIVATE WebP::WebP)

  string(APPEND tiff_requires_private " libwebp")

  target_link_libraries(${PROJECT_NAME} PRIVATE "C:/build/lib/libsharpyuv.lib")

endif()

 

With this line, libtiff builds and works correctly.

 

But having to edit the file by hand each time is not very elegant and I would 
like to find a definitive solution. I tried to pass the instruction on the 
cmake command line, but I couldn’t find a working solution.

 

Better still would be someone with the necessary programming knowledge to come 
up with a permanent solution on the original libtiff code. I am not a 
developer, I am a libtiff user with just enough knowledge to compile it myself 
and lightly modify code to solve basic issues.

 

I can also introduce the reference to libshrpyuv in Microsoft Visual Studio, 
under Linker/Input/Additional Dependencies, but I mostly prefer to build from 
the command line using cmake.

 

Any tips would be appreciated.

Thank you.

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] Current LibTIFF version ~ 4.4.0 or 4.5.0 ?

2022-08-21 Thread Miguel Medalha
Is 4.4.0 or 4.5.0 the current release of LibTIFF?

 

This page http://www.simplesystems.org/libtiff/ says:

 

LibTIFF 4.5.0 documentation

(.)

Latest Stable Release v4.4.0

 

 

The following repo files contain conflicting information:

 

VERSION --> 4.4.0

configure.ac --> LIBTIFF_MINOR_VERSION=5

 

Therefore, at build time, at least with cmake, the following information is
displayed:

"-- Building tiff version 4.5.0"

 

After build, when called from the command line, all the tiff tools display
the following:

"LIBTIFF, Version 4.4.0"

 

Thank you.

 

___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


[Tiff] JPEG2000 support

2022-04-01 Thread miguel medalha
Hello

Are there any plans to include JPEG2000 compression (OpenJPEG, for example)?

Thank you.


___
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff


Re: [CentOS] C8 and backup solution

2020-04-03 Thread miguel medalha
I have been using rsnapshot for years, with great success.

https://rsnapshot.org/


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] File server as host for a Windows Server VM?

2019-09-14 Thread miguel medalha



works but must be licensed.
Not sure if it works for you, but there’s an SQL server that runs on 
Linux.

https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-2017


The Express version (which would be enough for my case) is free.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] File server as host for a Windows Server VM?

2019-09-14 Thread miguel medalha



Not sure if it works for you, but there’s an SQL server that runs on Linux.


I am aware of that, and it would be my first choice. Unfortunately, in 
addition they want to use some damned printing account software, which 
only runs on Windows :-(


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] File server as host for a Windows Server VM?

2019-09-14 Thread miguel medalha

So far you have not provided stats on server usage (cpu,ram) over a
24hour or 7 day 8am-5pm timeframe. So I will asume you have plenty of
usage/performance to spare.

Yes, I do.

Unless using SSDs when creating the VM pleae do not use dynamic disk
allocation. MS SQL may be very intensive and you are already sharing
resources, lets not be the i/o intensity of the expanding disk one of
them.
The Windows VM machine would have (for now) two 1TB enterprise class 
disks in a mirror configuration exclusively available to it.

remember SQL server is all about RAM, the more the merrier.

I can give it 24 GB or even 36 GB if needed.

is your partition aligned?


Yes.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] File server as host for a Windows Server VM?

2019-09-14 Thread miguel medalha




Do they really need Server for that, or would a workstation do?


A workstation wouldn't do because the number of concurrent connections 
to it would be higher than MS allows for a workstation.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] File server as host for a Windows Server VM?

2019-09-14 Thread miguel medalha

I hope that someone here can give some advice on the following:

I have a Samba based Active Directory. A CentOS 7.6 machine runs as a 
file server and hosts the Windows user profiles for all the Windows 
workstations.


Now management has decided that they need a Windows server for a couple 
of administrative applications, which need MS SQL Server. That would be 
the only role of this Windows. Since the above mentioned server has 
enough resources (2x Quad Core Xeon 2.66 GHz with HT and 48 GB of RAM, a 
dual port 10 Gb NIC) I thought of making it a host for a Windows virtual 
machine using KVM. Given the resources and current setup we have, at the 
moment it wouldn't be practical to implement both servers as VMs on top 
of a bare metal hypervisor.


According to your experience, is there any motive why I shouldn't use 
such a setup?


Thank you for any insights.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] raid 5 install

2019-07-01 Thread miguel medalha

You seem to be saying that hardware RAID can’t lose data.  You’re ignoring the 
RAID 5 write hole:

 https://en.wikipedia.org/wiki/RAID#WRITE-HOLE

If you then bring up battery backups, now you’re adding cost to the system.  
And then some ~3-5 years later, downtime to swap the battery, and more 
downtime.  And all of that just to work around the RAID write hole.


Yes. Furthermore, with the huge capacity disks in use today, rebuilding 
a RAID 5 array after a disk fails, with all the necessary parity 
calculations, can take days.

RAID 5 is obsolete, and I'm not the only one saying it.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] What files to edit when changing the sdX of hard drives?

2019-02-28 Thread miguel medalha

No, I dislike UUIDs. I dislike, strongly, lots of extra typing that
doesn't really get me anything. MAYBE, if you're in a Google or Amazon
datacenter, with 500,000 physical servers (I phone interviewed with them
10 years ago)... but short of that? Nope.


You can (perhaps should...) use the World Wide Name, which is a 
manufacturer ID unique to each disk. Contrary to the /sdX, it doesn't 
change with different configurations, OS or computer. An example of such 
an ID is the following:


/dev/disk/by-id/wwn-0x50025ee3b4f5ca61

Many modern disks have their WWN printed on their labels.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Good linux software RAID primer advise

2017-12-01 Thread Miguel Medalha
>> Could someone recommend good Linux software RAID primer. It would >> be good 
>> if it has good coverage of monitoring and dealing with failures.

https://raid.wiki.kernel.org/index.php/Linux_Raid
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] semi-OT:apcupsd

2017-11-18 Thread Miguel Medalha
>> I can't seem to find apcupsd for C 6. Just went to epel's website, 
>> and not visible. Anyone have a clue?

I am running apcupsd on CentOS 6.9, monitoring through the network a common UPS 
that is physically connected to another server via USB.

Just download the latest source code and compile it yourself. It's as easy as
./configure
make
make install

No problems whatsoever.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Slow Samba

2017-07-23 Thread Miguel Medalha
Please ask this question on the Samba list. The probability of getting an 
answer is higher there.

sa...@lists.samba.org
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] frozen bubble for C7

2017-03-18 Thread Miguel Medalha

>
> Can't find perl(compress::bzip2) anywhere.

Are you looking for this? (first hit on Google)

http://search.cpan.org/~rurban/Compress-Bzip2-2.25/lib/Compress/Bzip2.pm

Or this?

ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/perl-IO-Compress-2.061-2.el7.noarch.rpm
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Realtek 8111GR on C7

2016-06-07 Thread Miguel Medalha



I'm planning to buy a mobo (z170-K) that has Realtek 8111GR (nic).

Is the Realtek 8111GR supported or I must change mobo?


I have been using a small server with a Realtek 8111E under CentOS 7 
without any problem.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hard drives being renamed

2016-05-24 Thread Miguel Medalha
>> I've run into this with ZFS on Linux. The 'blkid' is useful to identify the 
>> target device and then add that to your fstab. I don't use device names >> 
>> at all anymore, too ambiguous (depending on the circumstance) in my >> 
>> opinion.

Right. And there are other ways to identify disks unequivocally. Under CentOS, 
for example, I find the following directories:

/dev/disk/by-id
/dev/disk/by-path
/dev/disk/by-uuid

Each one has its optimal use case.

It seems to me that in general the ideal would  be to use the WWN identifier, 
which now comes printed on the disk label sticker and uniquely identifies the 
disk, offering a clear correspondence between physical and logical disks. Under 
CentOS, the WWN ID of detected disks can be found under /dev/disk/by-id. WWN 
stands for "World Wide Name". There's a Wikipedia article about it here:

https://en.wikipedia.org/wiki/World_Wide_Name

"hdparm - I" or even "smartctl  -a" will show which /dev/sdX or whatever 
corresponds to which WWN or other relatively stable ID types. The advantage of 
WWN is that the ID won't change if you connect the disk to a different 
controller, for example from a SAS one to a SATA one. In one of my servers, if 
I unplug a SATA disk from a LSI-Avago SAS controller and I connect it to a 
Intel onboard SATA controller the ID changes from "scsi-idnumber" to 
"ata-brand-model-serialnumber" but the WWN remains constant.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] SSD disk and SMART errors

2016-04-01 Thread Miguel Medalha
Two days ago I installed a brand new SSDNow E50 series (Enterprise) disk 
on a server. I intend to move the OS there. I just did the physical 
install and copied a few files to and from it just to see if it was OK. 
I left it there, waiting for an opportunity to configure it to do real work.


Now I have looked at it with smartctl -a and it gives me the following info:

  1 Raw_Read_Error_Rate 0x0033   104   104   050Pre-fail 
Always   -   9127078
  5 Reallocated_Sector_Ct   0x0033   100   100   003Pre-fail 
Always   -   0
  9 Power_On_Hours  0x0032   100   100   000Old_age 
Always   -   55 (241 12 0)
 12 Power_Cycle_Count   0x0032   100   100   000Old_age 
Always   -   7
 13 Read_Soft_Error_Rate0x0032   104   104   000Old_age 
Always   -   9127078
100 Unknown_Attribute   0x0032   000   000   000Old_age 
Always   -   4
170 Unknown_Attribute   0x0032   000   000   000Old_age 
Always   -   8480
171 Unknown_Attribute   0x000a   100   100   000Old_age 
Always   -   0
172 Unknown_Attribute   0x0032   100   100   000Old_age 
Always   -   0
174 Unknown_Attribute   0x0030   000   000   000Old_age 
Offline  -   6
177 Wear_Leveling_Count 0x   000   000   000Old_age 
Offline  -   0
181 Program_Fail_Cnt_Total  0x000a   100   100   000Old_age 
Always   -   0
182 Erase_Fail_Count_Total  0x0032   100   100   000Old_age 
Always   -   0
184 End-to-End_Error0x0032   100   100   090Old_age 
Always   -   0
187 Reported_Uncorrect  0x0012   100   100   000Old_age 
Always   -   0
194 Temperature_Celsius 0x0022   028   033   000Old_age 
Always   -   28 (Min/Max 20/33)
195 Hardware_ECC_Recovered  0x001c   120   120   000Old_age 
Offline  -   9127078
196 Reallocated_Event_Count 0x0033   100   100   003Pre-fail 
Always   -   0
198 Offline_Uncorrectable   0x0010   120   120   000Old_age 
Offline  -   75479755259904
199 UDMA_CRC_Error_Count0x0032   200   200   000Old_age 
Always   -   0
201 Unknown_SSD_Attribute   0x001c   120   120   000Old_age 
Offline  -   9127078
204 Soft_ECC_Correction 0x001c   120   120   000Old_age 
Offline  -   9127078
230 Unknown_SSD_Attribute   0x0013   100   100   000Pre-fail 
Always   -   0
231 Temperature_Celsius 0x   100   100   011Old_age 
Offline  -   0
232 Available_Reservd_Space 0x0032   000   000   000Old_age 
Always   -   33
233 Media_Wearout_Indicator 0x0032   000   000   000Old_age 
Always   -   6
234 Unknown_Attribute   0x0032   000   000   000Old_age 
Always   -   7
235 Unknown_Attribute   0x0033   100   100   002Pre-fail 
Always   -   0
241 Total_LBAs_Written  0x0032   000   000   000Old_age 
Always   -   7
242 Total_LBAs_Read 0x0032   000   000   000Old_age 
Always   -   5



Just look at the number under "198 Offline_Uncorrectable". Is this 
normal for this type of disk? Is smartctl misinterpreting the disk's 
features? The disk has been there essentially doing nothing and it 
presents such enormous numbers of errors. Why?


This is under CentOS 7 (1511).
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [Lcms-user] ColorSync/AdobeCMM et al. (“Slope Limit”) compatibility patch for Little CMS

2016-03-21 Thread Miguel Medalha

> I have tested the implementation in comparison with ColorSync and can 
> confirm that it emulates the behavior of ColorSync exactly. I do not 
> have access to the Adobe CMM, so I cannot confirm that it emulates the 
> Adobe CMM as precisely as it does with ColorSync.

Maybe you are well aware of this, but here it goes just in case: back in 
2007 Adobe made a public release of their Color Management Module (CMM). 
It can be downloaded from the following links:

Mac version
http://www.adobe.com/support/downloads/detail.jsp?ftpID=3617

Windows version
http://www.adobe.com/support/downloads/detail.jsp?ftpID=3618

Unfortunately, both are 32bit only.


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
___
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: [CentOS] Any experiences with newer WD Red drives?

2016-03-01 Thread Miguel Medalha


any chance your SATA cables aren't up to SATA3 (6gbps) performance 
levels ?




In my experience, that's the most likely cause.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Any experiences with newer WD Red drives?

2016-03-01 Thread Miguel Medalha


I discovered, amidst great initial pain, that most, if not all, of the 
problems I had with SATA disks were caused by SATA cables and not by 
the disks themselves. Intermittent problems, such as disks randomly 
not showing up in RAID groups, were solved when I replaced the cables 
with proper ones. Some of the bad cables even came from well known names.


Coincidence or not, all of the cables I had problems with were of the 
same general type: thin and covered with wrapped aluminum foil. I don't 
think I ever had problems with the flat, wider ones.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Any experiences with newer WD Red drives?

2016-03-01 Thread Miguel Medalha



However, the latest C7 server I built, ran into problems with them on
on a Intel C236 board (SuperMicro X11SSH) with tons of "ata bus error
write fpdma queued". Googling on it threw up old suggestions to limit
SATA link speed to 1.5Gbps using libata.force boot options and/or
noncq. Lowering the link speed helped to reduce the frequency of the
errors (from not getting a smartctl output to getting a complete
listing within 2 tries).



I discovered, amidst great initial pain, that most, if not all, of the 
problems I had with SATA disks were caused by SATA cables and not by the 
disks themselves. Intermittent problems, such as disks randomly not 
showing up in RAID groups, were solved when I replaced the cables with 
proper ones. Some of the bad cables even came from well known names.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] C7 AD server

2016-02-07 Thread Miguel Medalha
>> How I can assing permission on this share?

You can easily do it by following the instructions on the Samba Wiki:

https://wiki.samba.org/index.php/User_Documentation
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] C7 AD server

2016-02-06 Thread Miguel Medalha
>> Try this. I have been thinking of trying it on C7.
>> http://www.linuxhelp.net/forums/index.php?showtopic=10868

I wouldn't follow the instructions on that link.

Disable iptables? Nah!

The author lumps SELinux and the firewall together.

What is said about DNS is also misleading. DNS is crucial for AD.

Please look at the Samba Wiki instead.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CENTOS not DoD approved

2015-04-28 Thread Miguel Medalha


 nowhere does it say that centos is approved for use in DoD. it is not on 
 the APL, only RedHat and SuSE
 

So what? If that is so important to you, you can go and buy a RedHat 
license.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Lcms-user] ANNOUNCE: lcms2-2.7 released

2015-03-23 Thread Miguel Medalha

The 2.7 section of the changelog file contained in the 2.7 release packages 
is empty, i.e. no changes are listed for version 2.7. Is this on purpose?

Thank you for the outstanding work with lcms.


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


Re: [CentOS] which uuid to specify a raid in fstab

2015-03-07 Thread Miguel Medalha
Assuming your raid group is /dev/md127, you can run:

ls -l /dev/disk/by-uuid

or

blkid /dev/md127

and use the ID both will show for /dev/md127

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] selinux allow FTP

2015-03-02 Thread Miguel Medalha
 
 Heh.. yeah. But the client isn't gonna go for that. LOL. Any way to allow
 regular ol' FTP using SELinux? Or does that just defeat the purpose of
 having a secure SELlinux server entirely?
 

Maybe use FTP in a jail? Or Linux containers?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ZFS

2014-09-15 Thread Miguel Medalha
 Maybe you can tune ZFS further, but I tried it in userspace (with FUSE) and 
 reading was a almost 5 times slower than MDADM.

That alone is meaningless.  MDADM with which filesystem? 

Zfsonlinux does not work in user space,  it is a kernel module. Just try it. 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SAMBA as AD DC

2014-09-14 Thread Miguel Medalha
 Why don't  you use Sernet Enterprise Samba?

 (...) they do not provide RPMs for RHEL/CentOS 7. So this seems not to be an 
 option.

As someone said before, you don't need to use the latest and greatest to run 
a functional service... On a production environment that is even often 
undesirable until things settle down...

Anyway, Sernet also provides a source rpm. Why not build up from that base?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SAMBA as AD DC

2014-09-13 Thread Miguel Medalha
Why don't  you use Sernet Enterprise Samba? 

They provide precompiled packages for a bunch of distros. 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT hard disk geometry

2014-02-08 Thread Miguel Medalha
With some SATA drives the mode change can only be done by a software utility. 
Some of them don't have jumpers at all.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT hard disk geometry

2014-02-08 Thread Miguel Medalha
The server's manual recommends filling the drive bays in the 1,2,3,4 order.
At this point, you should check the HP support page for the server, Look for 
controller firmware updates, BIOS updates, troubleshooting advice and so on.

Did you try to connect the drive alone? If it is detected alone, you will have 
a clue there. Some drives don't go along with some others when installed in the 
same pair of ports, for example.

I would also suspect the cable. I have had more problems with SATA cables than 
I could expect.

Also, the drive itself can be defective. I once received two new WD high end 
drives that couldn't be detected by any controller and I had to return them. 
The new ones worked fine.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT hard disk geometry

2014-02-07 Thread Miguel Medalha
It seems to me that there's some confusion on your part about what a 
SATA power connector is...

The SATA edge connector is divided in two parts, a larger one and a 
narrower one. The narrower one is the signal, or data, connector. The 
larger one is the power connector.

Some older drives also had an additional common Molex connector for 
power, for compatibility reasons, since at first only a few power 
supplies had the SATA power connector. Note that the Molex connector 
does not enable the hot-plugging and unplugging of SATA drives. This 
needs the 3.3V supply that only the SATA connector provides. As far as I 
can see, the ST3250318AS does not have such a connector.

The manual for the ST3250318AS is here:

http://www.seagate.com/staticfiles/support/disc/manuals/desktop/Barracuda%207200.12/100529369b.pdf

On page 28 you can read about the SATA cables and connectors. The pins 
you refer to, which are not present on the WD at the same position, are 
NOT power connections, that is a jumper block as you can read on the 
first image of page 28. The manual states the following:

«
It is usually not necessary to set any jumpers on the drive
for proper operation; however, if you connect the drive and receive a 
“drive not detected” error, your SATAequipped
motherboard or host adapter may use a chipset that does not support SATA 
speed autonegotiation. If
you have a motherboard or host adapter that does not support 
autonegotiation:
-Install a jumper as shown in Figure 1 below to limit the data transfer 
rate to 1.5 Gbits per second (and leave the drive connected to the 
SATA-equipped motherboard or host adapter that doesn’t support 
autonegotiation) or
-Install a SATA host adapter that supports autonegotiation, leave the 
drive jumper block set to “Normal operation” (see Figure 1 below), and 
connect the drive to that adapter. This option has the benefit of not 
limiting the drive to a 1.5 Gbits/sec transfer rate.
»

I think this is not a power connector issue.

The WD is a SATA3 drive (6gb/s). Are you sure that your motherboard 
supports SATA3 drives? Maybe SOME ports support them while others do 
not? If not, can you force the WD to operate in a lower mode? Some 
drives can, either by hardware or software.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT hard disk geometry

2014-02-07 Thread Miguel Medalha

  that I am running CentOS-6.5 on my HP MicroServer.

Can you please tell us which exact model of MicroServer do you have?
That way, it will be easier to help you.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] Samba 4 Packages Available for Download

2013-05-15 Thread Miguel Medalha
There seems to be a problem with the sernet-samba-ad init script, at 
least on CentOS.


Samba fails to start. The log file shows the following:

[2013/05/15 20:48:37,  0] ../source4/smbd/server.c:369(binary_smbd_main)
  samba version 4.0.5-SerNet-RedHat-1.el6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2012
[2013/05/15 20:48:38,  0] ../source4/smbd/server.c:475(binary_smbd_main)
  samba: using 'standard' process model
[2013/05/15 20:48:38,  0] 
../file_server/file_server.c:47(file_server_smbd_done)

  file_server smbd daemon exited normally
[2013/05/15 20:48:38,  0] 
../source4/smbd/service_task.c:35(task_server_terminate)

  task_server_terminate: [smbd child process exited]
[2013/05/15 20:48:38,  0] ../source4/smbd/server.c:210(samba_terminate)
  samba_terminate: smbd child process exited

It looks like smbd starts and immediately exits.

Under /var/run/samba, a process file samba.pid remains but not a 
smbd.pid file.


Although samba is not running, the pidfile is left there. As a 
consequence, on further attempts to start samba using the script, it 
complains that a pidfile already exists.


When samba is called by other means (/usr/sbin/samba or alternative init 
scripts) it starts and runs correctly.


I am running 64bit CentOS 6.4.

Thank you for your work.

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


Re: [Samba] RPM building tools for Samba 4.0.3 on RHEL 6 published bye me on Github

2013-03-22 Thread Miguel Medalha

Regarding your latest samba.spec for version 4.0.4-0.1

If with_dc is activated, the build still fails with:

RPM build errors:
Installed (but unpackaged) file(s) found:
   /usr/lib64/samba/ldb/ildap.so

As I reported before, there is an entry for ldbsamba_extensions.so 
under # ldb libraries built with DC activated but not for ildap.so.

The file gets built but not packaged.


Also, the installation of the samba-libs package fails with:

error: Failed dependencies:
libdfs_server_ad.so()(64bit) is needed by 
samba-libs-0:4.0.4-0.1.el6.x86_64
libdfs_server_ad.so(SAMBA_4.0.4)(64bit) is needed by 
samba-libs-0:4.0.4-0.1.el6.x86_64


The query rpm --query --requires -p 
samba-libs-4.0.4-0.1.el6.x86_64.rpm gives libdfs_server_ad.so as a 
requirement.


Is there any reason why my previous suggestion to package 
libdfs_server_ad.so in samba-libs instead of samba-dc-libs was not 
accepted?
If you do that, under the condition %if %with_dc, the error 
disappears. Please note that samba-libs must always be installed 
before samba-dc-libs, so that the samba-dc-libs requirement at 
install has already been satisfied by samba-libs.



As also reported before, the same happens with libposix_eadb.so. It is 
required by samba. I suggested that it be moved to the same section as 
libdfs_server_ad.so, i.e. in samba-libs under %if %with_dc.


If these two steps are taken, both build and install complete flawlessly 
and you get a working AD DC installation.




If this is accepted, as a final touch and for the sake of consistency, 
the %exclude for /libdfs_server_ad.so should go into LIBS, under 
%if %with_dc:


%else
# formerly excluded in files dc
%exclude %{_libdir}/samba/libdfs_server_ad.so
%endif # with_dc

and the %exclude for /ildap.so and ldbsamba_extensions.so should 
go into DC-LIBS, also under %if %with_dc


%else
%doc packaging/RHEL-rpms/README.dc-libs
# formerly excluded in files dc
%exclude %{_libdir}/samba/ldb/ildap.so
%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so
%endif # with_dc

Best regards
Miguel

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


Re: [Samba] RPM building tools for Samba 4.0.3 on RHEL 6 published bye me on Github

2013-03-20 Thread Miguel Medalha


I tested the .spec file you posted today. There's still a glitch remaining.

If built with the file as it is (%global with_dc 0) the packages build 
cleanly.


However, if %global with_dc 1 is used, the build fails with the 
following error:


RPM build errors:
Installed (but unpackaged) file(s) found:
   /usr/lib64/samba/ldb/ildap.so

I can see that this file is excluded in the packging list pertaining to 
DC-LIBS, if with_dc is disabled but it is not one of the # ldb 
libraries built with DC activated, contrary to the other file always 
excluded in the Fedora .spec (ldbsamba_extensions.so), which is listed 
in your file.


When I do a rpm query for --whatrequires both files, the answer is that 
no package requires either file. As such, they should probably be always 
excluded, as happens with the Fedora .spec file.



One more thing: since Samba 4.0.4 is out now, maybe you should update 
your files to match? This is just a security release that presents no 
problem whatsoever when built with the same specs as 4.0.3. I did it and 
all went well. I have an experimental AD domain controller working 
correctly it it.


Thank you again

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


Re: [Samba] RPM building tools for Samba 4.0.3 on RHEL 6 published bye me on Github

2013-03-20 Thread Miguel Medalha


I forgot something.

%{_libdir}/samba/libdfs_server_ad.so
%{_libdir}/samba/libposix_eadb.so

As I said before, those two entries MUST be within ### LIBS, under 
%if %with_dc. Otherwise, the build completes cleanly but the install 
process of samba-libs and samba fails with the following:


error: Failed dependencies:
libdfs_server_ad.so()(64bit) is needed by 
samba-libs-0:4.0.4-1.el6.x86_64
libdfs_server_ad.so(SAMBA_4.0.4)(64bit) is needed by 
samba-libs-0:4.0.4-1.el6.x86_64


error: Failed dependencies:
libposix_eadb.so()(64bit) is needed by samba-0:4.0.3-0.6.el6.x86_64
libposix_eadb.so(SAMBA_4.0.3)(64bit) is needed by 
samba-0:4.0.3-0.6.el6.x86_64



I suggest doing the described inclusions and, for the sake of 
consistency, moving the correspondent exclusion to the same section:


### LIBS
%if %with_dc
%{_libdir}/samba/libdfs_server_ad.so
%{_libdir}/samba/libposix_eadb.so
%else
# formerly excluded in files dc
%exclude %{_libdir}/samba/libdfs_server_ad.so
%endif # with_dc

If these steps are taken, everything builds and installs correctly, 
whether AD DC is activated or not.



The Fedora .spec file excludes samba/libdfs_server_ad.so from the 
build process altogether because Fedora is not using the AD DC component 
of Samba 4 due to lack of support with MIT Kerberos.


---

On the matter of the release of Samba 4.0.4, shouldn't the Obsoletes 
statement now include the form Obsoletes: samba  %{samba_depver} 
instead of only Obsoletes: samba4  %{samba_depver}? You now need to 
Obsolete all versions of Samba 4 prior to 4.0.4, both release and 
pre-release.


Also, I think that the form you are still using for Provides (for 
example Provides: samba4-common = %{samba_depver}) is no longer 
correct. According to the Samba team conventions, after the release of 
Samba 4 the form should now be Provides: samba-common = %{samba_depver}.


In a previous mail to you, I suggested:

Provides: samba = %{samba_depver}
Conflicts: samba4  %{samba_depver}
Obsoletes: samba  %{samba_depver}

I used Conflicts for samba4 because there are significant 
differences between the pre-release and the release versions.

Or maybe we could use two Obsoletes statements instead...

Best regards
Miguel

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


Re: [Samba] Samba4 Compile Error

2013-03-18 Thread Miguel Medalha


Definitely update to RHEL 6.4, if possible, and consider working from 
my samba-4.0.3 backports at: https://github.com/nkadel/samba4repo This 
is designed to check out all the other needed dependencies, and work 
from there to build up a local yum repository with all the necessary 
libtdb, libldb, iniparser, and other dependencies. 



I just had a look at the latest changes you did. I am glad that you 
included a samba.init file.

It was a nice touch.

I used your latest samba.spec to build the packages and I found that 
there are still a few  issues to be solved:




If %global with_dc 0 is used, the build fails with the following result:

RPM build errors:
Installed (but unpackaged) file(s) found:
   /usr/lib64/samba/ldb/ildap.so
   /usr/lib64/samba/ldb/ldbsamba_extensions.so
   /usr/lib64/samba/libdfs_server_ad.so

I used the following additions:

### DC-LIBS
%if %with_dc
# ldb libraries built with DC activated
%{_libdir}/samba/ldb/ildap.so
%{_libdir}/samba/ldb/ldbsamba_extensions.so
%else
%exclude %{_libdir}/samba/ldb/ildap.so
%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so
%endif



If %global with_dc 1 is used, the installation of the RPMS in the 
required order gives the following errors:


rpm -Uvh samba-libs-4.0.3-0.6.el6.x86_64.rp
error: Failed dependencies:
libdfs_server_ad.so()(64bit) is needed by 
samba-libs-0:4.0.3-0.6.el6.x86_64
libdfs_server_ad.so(SAMBA_4.0.3)(64bit) is needed by 
samba-libs-0:4.0.3-0.6.el6.x86_64


rpm -Uvh samba-4.0.3-0.6.el6.x86_64.rpm
error: Failed dependencies:
libposix_eadb.so()(64bit) is needed by samba-0:4.0.3-0.6.el6.x86_64
libposix_eadb.so(SAMBA_4.0.3)(64bit) is needed by 
samba-0:4.0.3-0.6.el6.x86_64


To avoid a dependence nightmare, samba-libsand samba must be 
installed before samba-dc-libs and samba-dc.
As such, the former two cannot depend on the later to satisfy their 
requirements. Maybe the following should be included

under LIBS?

### LIBS
%if %with_dc
%{_libdir}/samba/libdfs_server_ad.so
%{_libdir}/samba/libposix_eadb.so
%else
%exclude %{_libdir}/samba/libdfs_server_ad.so
%endif # with_dc



I don't really know if some the above files are in fact needed even when 
DC is off, so I did the above configuration experimentally for my own 
use and everything built and installed correctly.


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


Re: [CentOS] CentOS 6.4 Release Date.

2013-03-09 Thread Miguel Medalha
 I just checked the mirrors this morning and nothing has shown up for 6.4.


That's strange! Yesterday I've seen it in a few mirrors, including a 
couple here in Portugal.
As an example:

ftp://ftp.dei.uc.pt/pub/linux/CentOS/6.4/

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] permission problems (ACL)

2012-06-28 Thread Miguel Medalha



if i move a file from the first folder to the second folder by cutting it
out in windows (the share is mounted there) and inserting it in the 2nd
folder the 2nd group (sharepub) has no access to it. So basicly the first folder
keeps it's permissions.

i thought that the parent dir permissions are set to sub folders/files.

oh and i enabled honor existing acls and enable permission inheritence,
which i think should be correct.

anyone got an idea whats wrong?


Nothing is wrong. This is the default behavior of Windows itself.

When you move a file, it keeps its permissions, as it should. When you 
copy a file, it acquires the permissions of the destination folder.


With Windows 7 there has been some modification to this default 
behavior. Please consult the Microsoft technical pages about this.

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


Re: [Samba] permission problems (ACL)

2012-06-28 Thread Miguel Medalha




Good to know that it's a OS problem and not a samba problem.
I finnally know what to look for.


It is not a problem, it's a feature! If you think about it carefully, 
you will see that this is a correct way to behave.


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


Re: [Samba] Two attempts required to join domain (SOLVED)

2012-06-18 Thread Miguel Medalha



add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u



Shouldn't that be -W (uppercase W)?

From smbldap-useradd:

-wis a Windows Workstation (otherwise, Posix stuff only)
-Wis a Windows Workstation, with Samba atributes (otherwise, Posix 
stuff only)


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


[Samba] Need secure version of samba for RHEL5 server.

2012-05-15 Thread Miguel Medalha

 But now I can't locate one that is a 3.6 with the security issue
 fixed. I want to do a clean install, not a patch.

ftp://ftp.sernet.de/pub/samba/3.6/centos/5/

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


Re: [Samba] windows 7 roaming profiles

2012-03-29 Thread Miguel Medalha




Folder Redirection will always (I think - or maybe Samba has a way to
disable this, but I don't think it would be a good idea at all) store
local cached copy of those folders on the local computer... what it
accomplishes is it saves all of the copying back and forth when
logging in/out.



NO, IT DOESN'T! What you describe is the behavior of normal *roaming 
profiles*. Folder redirection *does not* move files back and forth. The 
files in redirected folders will always reside on the server. I know 
this not only from theory but *from experience*.


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


Re: [Samba] windows 7 roaming profiles

2012-03-29 Thread Miguel Medalha

Isn't there a way with group policies to have the client delete the
roaming profile after the user logs out. I think that would solve the
OP''s problem.


Yes, there's a way to do that. But it doesn't solve the problem of 
having to transfer maybe hundreds of megabytes or even worse each time 
you log in to the domain. Back when the idea of roaming profiles was 
first put to practice (Windows 2000), user profiles were MUCH smaller 
than they are today.


So, the use of roaming profiles with folder redirection seems to me the 
most appropriate way to deal with this.


Please note that the Local Settings component of the profile should 
not be redirected.


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


Re: [Samba] windows 7 roaming profiles

2012-03-29 Thread Miguel Medalha



NO, IT DOESN'T!


Microsoft disagrees - see below.



You are introducing a new theme altogether: Offline Files. On a local 
and *reliable* network, you can use folder redirection *without* Offline 
Files. I did it and it works.



What you describe is the behavior of normal *roaming profiles*.


No... you can use a combination of roaming profiles and redirected 
folders for the best result, which is what I do.


That's precisely what I was advocating. Please read my posts.


The stuff in t he roaming profiles (very little) is copied back/forth 
at login/out, the stuff in t he redirected folders is *synchronized* 
at all times using the Offline Files technology that has long existed 
in Microsofts products.




Maybe you were not very clear in your first post. You said the following:

Folder Redirection will always (...) store local cached copy of those 
folders on the local computer... what it accomplishes is it saves all of 
the copying back and forth when logging in/out.


which is not true. Even with Offline Files, only the files you are 
working with will be synchronized back and forth. The redirected folders 
themselves and the files previously stored therein will not be 
transferred to the client machine. This makes a big difference because 
we may be talking about Gigabytes of data. A roaming profile without 
folder redirection does transfer the whole profile, which might have 
been a good idea a decade ago but is not feasible with the amounts of 
data we work with today.



Yes, but they will *also* reside on the *local computer*.



As I said before, only the files you are modifying will have a local 
instance, which will be synchronized to the server at logout.



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


Re: [Samba] windows 7 roaming profiles

2012-03-29 Thread Miguel Medalha

This is also worth reading:

http://technet.microsoft.com/en-us/library/ff183315%28WS.10%29.aspx

This is important:

«
Exclusion List

The Exclusion List feature reduces synchronization overhead and disk 
space usage on the server, and speeds up backup and restore operations, 
by excluding files of certain types from replication across all Folder 
Redirection clients. Prior to Windows 7, all files in an Offline Files 
folder were replicated to the server. This often meant that a users’ 
personal files or large files not relevant to the enterprise were 
replicated to one or more servers, thereby consuming disk space and 
slowing backup and restore times. On Windows 7, administrators can use 
the Offline Files Exclusion List feature to prevent files of certain 
types (for example, MP3 files) from being synchronized. The list of file 
types is configured by the IT administrator by using Group Policy.

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


Re: [Samba] windows 7 roaming profiles

2012-03-27 Thread Miguel Medalha



2. Is it correct that the profile files are not synced until the user
logs off?


That is the correct working of roaming profiles. If you want the files 
only on the server, you should look into Folder redirection. The Samba 
docs contain good info on that.


You can use roaming profiles only, folder redirection only, or a 
combination of both, which I usually consider the more appropriate option.


Samba-3 by Example -- Configuration of Default Profile with Folder 
Redirection

http://www.samba.org/samba/docs/man/Samba-Guide/happy.html#redirfold

There's another good web page about this issue (Windows System 
Management: Real Men Don't Click) but it seems unavailable now. I have 
it in my archives and I will send it to your email address as a .mht file.



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


Re: [Samba] samba+ldap

2012-03-21 Thread Miguel Medalha



I'm trying to combine samba + ldap, I was successful in another
attempt what motivated me to create one. deb package that would make
the whole process, I installed this package, the ldap dit was created
successfully but when I try to insert a Windows machine in the Domain
I get the message that the Referred Domain does not exist or can not
be contacted. The system log does not log connections slapd in
compensation log.nmbd the reports that my domain is ok, since I
thought that might be the fact that before I used samba compiladod
manually - with-ldap, now thank you.


Are you trying to join a Windows 7 machine to the domain?

If so, please see this page:

http://wiki.samba.org/index.php/Windows7

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


Re: [CentOS] md raid 10

2012-03-07 Thread Miguel Medalha

 the problem with that is when your boot drive dies your can't boot...with
 ubuntu at least if any drive dies i can stilll boot off of the other 3..:)

You don't need a boot drive, you only need a *boot partition*.

So, you create a small *boot partition* with RAID1 and then allocate the 
rest of your drives to a RAID10 array.

You will still have redundancy (RAID1) on your boot partition.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] md raid 10

2012-03-07 Thread Miguel Medalha
  i then have to redo my entire array...and loose space inside the
  array.  Plus if i raid1 it then i only have two bootable disks..at
  least this way i have 4 bootable disks..:)

Lose space? 100 or 200MB? Why the heck wouldn't you be able to spare 100 
or 200MB of the gigantic size of today's drives?

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] md raid 10

2012-03-07 Thread Miguel Medalha

  Plus if i raid1 it then i only have two bootable disks..at least 
this way i have 4 bootable disks..:)

No, you don't have 4. Please study the way a RAID10 array works.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Software RAID1 with CentOS-6.2

2012-02-29 Thread Miguel Medalha

A few months ago I had an enormous amount of grief trying to understand 
why a RAID array in a new server kept getting corrupted and suddenly 
changing configuration. After a lot of despair and head scratching it 
turned out to be the SATA cables. This was a rack server from Asus with 
a SATA backplane. The cables, made by Foxconn, came pre-installed.

After I replaced the SATA cables with new ones, all problems were gone 
and the array is now rock solid.

Many SATA cables on the market are pieces of junk either incapable of 
coping with the high frequencies involved in SATA 3Gb/s or 6Gb/s or 
their connector are made of bad quality plastics unable to keep the 
necessary pressure on the contacts.

I had already found this problem with desktop machines, I simply 
wouldn't believe that such a class of hardware would exhibit it also.

So, I would advise you to replace the SATA cables with good quality ones.


As an additional information, I quote from the Caviar Black range datasheet:

Desktop / Consumer RAID Environments - WD Caviar Black Hard Drives are 
tested and recommended for use in consumer-type RAID applications 
(RAID-0 /RAID-1).
- Business Critical RAID Environments – WD Caviar Black Hard Drives are 
not recommended for and are not warranted for use in RAID environments 
utilizing Enterprise HBAs and/or expanders and in multi-bay chassis, as 
they are not designed for, nor tested in, these specific types of RAID 
applications. For all Business Critical RAID applications, please 
consider WD’s Enterprise Hard Drives that are specifically designed with 
RAID-specific, time-limited error recovery (TLER), are tested 
extensively in 24x7 RAID applications, and include features like 
enhanced RAFF technology and thermal extended burn-in testing.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup a computer using CentOS6 as a firewall for the whole network in my place?

2012-02-24 Thread Miguel Medalha

 pfsense for a newbie?

Yup! Based on the simple requirements that the OP expressed, i.e. a 
firewall for the whole network in my place, I would again recommend 
pfsense. It may seem paradoxical but it's not. It just *works* after a 
very simple and quick installation. The user only has to answer a couple 
of simple questions. A WAN interface and a LAN interface are ready and 
working together and that's it.

It can be installed on anything, from a Compact Flash card to a USB 
sticker, it doesn't even need a hard disk.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup a computer using CentOS6 as a firewall for the whole network in my place?

2012-02-24 Thread Miguel Medalha
 pfsense for a newbie?

 A CentOS-like firewall would be ClearOS (formerly Clarkconnect) and again 
 would reduce the number of simultaneously-learned layers to wade through.  
 While it works very well, it is yet another layer and difference to learn, 
 and when learning is is really good to not overload the number of layers to 
 learn at once.  IMHO, YMMV, etc.

 Since I have done cisco IOS stuff for a decade and a half, now, I'd recommend 
 Vyatta over pfsense, but, there again, it is yet another, different, layer to 
 learn that *will* overwhelm a newbie.

Isn't Vyatta a comercial product? I suppose that it wouldn't fit a 
newbie either...

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup a computer using CentOS6 as a firewall for the whole network in my place?

2012-02-23 Thread Miguel Medalha

Why does it have to be CentOS? If you want a wonderful router/firewall 
that you can have up and running in a few minutes, you should look at this:

www.pfsense.org

I quote from their website:

pfSense is a free, open source customized distribution of FreeBSD 
http://www.freebsd.org tailored for use as a firewall and router. In 
addition to being a powerful, flexible firewalling and routing platform, 
it includes a long list of related features and a package system 
allowing further expandability without adding bloat and potential 
security vulnerabilities to the base distribution.


If you insist in using Linux instead, you could look at this:

www.ipcop.org

Once again, a distro specialized on the function it performs.

Why have a generic and bloated system that you then have to customize 
from scratch when such wonderful specialized projects already exist?

I use Linux servers and a pfsense firewall to protect the network. Works 
like a charm, with amazing stability and reliability.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to setup a computer using CentOS6 as a firewall for the whole network in my place?

2012-02-23 Thread Miguel Medalha

 For a newbie one like me ... which option you would advise me to go for?
 I do not have any special preferences but I do care  for the one that 
 is more stable and provide really more security.

It seems to me that the last line of my previous post already contained 
my answer to your question :-)

I use Linux servers and a pfsense firewall to protect the network. 
Works like a charm, with amazing stability and reliability.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] LDAP issues

2012-02-15 Thread Miguel Medalha @ AMBAAL



To follow up and finalize, this is now SOLVED.



Thank you for your feedback on how you solved your issue. Without 
feedback, we wouldn't be able to learn all that we can learn and we 
wouldn't fully benefit from the experience of others.



First of all, I am using the IDEALX scripts (renamed now to
smbldap-tools, but the IDEALX names sticks for backwards
compatibility, apparently; they're located at
http://sourceforge.net/projects/smbldap-tools/).


As indicated on the page you just quoted, the new home of the 
smbldap-tools project is now:


https://gna.org/projects/smbldap-tools/

The most recent packages, smbldap-tools-0.9.7-1, date from  26-Sep-2011.

Thank you

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


Re: [Samba] Samba 3.6.1 losing browser elections to WinXP

2012-02-14 Thread Miguel Medalha



2)  How can I force a browser election without
restarting the daemons?  smbd doesn't seem
to respond to a SIGHUP.  A command line would
be nice.



Look at the smbcontrol command.



os level = 65


Did you try to increase os level ?

Also, read the man page for the domain master parameter.

From smb.conf  man page:

preferred master (G)

This boolean parameter controls if nmbd(8) is a preferred master 
browser for its workgroup.


If this is set to yes, on startup, nmbd will force an election, and 
it will have a slight advantage in winning the election. *It is 
recommended that this parameter is used in conjunction with domain 
master = yes, so that nmbd can guarantee becoming a domain master.*


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


Re: [Samba] Incorrect domain SID when creating new users

2012-02-08 Thread Miguel Medalha



I created a new user on our Samba domain master yesterday but the user
was unable to login from WinXP to the domain. I think they got an
error that a device connected to the system wasn't working. The user
was created using smbldap-useradd.

(...) The question is
where do I set the domain SID? I remember doing it at some stage when
I set-up the samba domain but I have forgotten.


The SID number is configured in /etc/smbldap-tools/smbldap.conf

smbldap-tools comes with a script to assist in the basic configuration 
of the tools. It's called configure.pl in most versions but the name 
was recently changed to smbldap-config.pl


At least in RedHat-alike distros, the script resides in 
/usr/share/doc/smbldap-tools-x.x.x, where x.x.x is your particular 
version. Current version is 0.9.7-1.


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


Re: [Samba] LDAP issues

2012-01-26 Thread Miguel Medalha
I didn't go too deeply on your issue, but it seems to me that since you 
have:


ldap user suffix = ou=People

You cannot simply have:


dn: uid=testu...@mydomain.com,ou=mydomain,o=ndtc


But should have instead:

dn: uid=testu...@mydomain.com,ou=People,ou=mydomain,o=ndtc

Am I wrong?

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


Re: [Samba] LDAP issues

2012-01-26 Thread Miguel Medalha




I didn't go too deeply on your issue, but it seems to me that since 
you have:


ldap user suffix = ou=People

You cannot simply have:


dn: uid=testu...@mydomain.com,ou=mydomain,o=ndtc


But should have instead:

dn: uid=testu...@mydomain.com,ou=People,ou=mydomain,o=ndtc

Am I wrong?



Nope.  You're right.  I have removed the ou=People line.  Still no joy.



I suppose that you cannot simply remove it. You have to tell Samba where 
the user's container resides.
Judging from your LDIF, your users seem to reside directly on 
ou=mydomain? Maybe you should look at the whole ldap arrangement...

The structure just doesn't seem right...
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha

 Now the machine is not particularly powerful: it is 64-bit machine, dual
 core CPU, 3 GB RAM. So perhaps this is a factor in why I am having the
 following problem: once in awhile that XFS partition starts generating
 multiple I/O errors, files that had content become 0 byte, directories
 disappear, etc. Every time a reboot fixes that, however. So far I've looked
 at logs but could not find a cause of precipitating event.

Is the CentOS you are running a 64 bit one?

The reason I am asking this is because the use of XFS under a 32 bit OS 
is NOT recommended.
If you search this list's archives you will find some discussion about 
this subject.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha
 Correction to the above: the XFS partition is 26TB, not 16 TB (not that it
 should matter in the context of this particular situation).

Yes, it does matter:

Read this:

*[CentOS] 32-bit kernel+XFS+16.xTB filesystem = potential disaster*
http://lists.centos.org/pipermail/centos/2011-April/109142.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha


 uname -a
 Linux nrims-bs 2.6.18-274.12.1.el5xen #1 SMP Tue Nov 29 14:18:21 EST 
 2011 x86_64 x86_64 x86_64 GNU/Linux

 this is clearly a 64-bit OS so the 32-bit limitations ought not to apply.


Ok! Since you didn't inform us in your initial post, I thought I should 
ask you in order to eliminate that possible cause.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha

Nevertheless, it seems to me that you should have more than 3GB of RAM 
on a 64 bit system...
Since the width of the binary word is 64 bit in this case, 3GB 
correspond to 1.5GB on a 32 bit system...
If you have a 64 bit system you should give it space to work properly.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha

 Nevertheless, it seems to me that you should have more than 3GB of RAM
 on a 64 bit system...
 Since the width of the binary word is 64 bit in this case, 3GB
 correspond to 1.5GB on a 32 bit system...
 If you have a 64 bit system you should give it space to work properly.

... and the fact that a reboot seems to fix the problem could also point 
in that direction.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] weird XFS problem

2012-01-22 Thread Miguel Medalha



 You are right - it would indeed be desirable to have more than 3 GB of 
 RAM on that system. However it is not obvious to me that having that 
 little RAM should cause I/O failure? Why? That it would make the 
 machine slow is to be expected - and especially so given that I had to 
 jack the swap up to some 40 GB. But I do not necessarily see why I 
 should have outright failures due solely to not having more RAM.


If I were you, I would be monitoring the system's memory usage. Maybe 
some software component has a memory leak which keeps worsening until a 
reboot cleans it.
Also, I wouldn't discard the possibility of a physical memory problem. 
Can you test it?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Dedicated Firewall/Router

2012-01-16 Thread Miguel Medalha

 I want to build a dedicated firewall/router as I am launching a NPO and I can 
 host this in my garage. (Comcast offered me a 100 x 20 circuit for $99/mo 
 with 5 statics)

 Thoughts, opinions, suggestions are welcome as to what to do!

http://www.pfsense.org/

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] Advantages to using CUPS printing on a PDC

2011-10-28 Thread Miguel Medalha



I'd like to know the advantages out there in the field, using CUPS to print
from the PDC. To me it sounds like just adding another single point of
failure in the network, perhaps I am being blinded by windows printing
issues to see the advantage in running all the prints via a PDC box?


Centralized management of printers? Print job accounting? Network 
printing to printers without a network interface?

These examples can be important in some environments.

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


Re: [CentOS] Samba + Openldap

2011-10-18 Thread Miguel Medalha

 Anyone have an update tutorial/howto for samba to authenticate to ldap?


http://www.samba.org/samba/docs/man/Samba-Guide/happy.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] Samba 3.4.7 with LDAP authentication

2011-10-07 Thread Miguel Medalha



User Search failed!


There's something seriously wrong with your LDAP configuration. Are you 
sure that the OUs exist and are in the proper place?


Can you use some LDAP client (LAM,phpldapadmin, LDAPAdmin, Apache 
Directory Studio, etc) ro inspect the LDAP database?



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


Re: [Samba] Samba 3.4.7 with LDAP authentication

2011-10-07 Thread Miguel Medalha



objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: hostObject
objectClass: top


Your user entries do not contain Samba attributes. They MUST include the 
following:


objectClass: sambaSamAccount

Are you sure that you enabled the samba.schema in /etc/openldap/slapd.conf?

include/etc/openldap/schema/samba3.schema

(In some systems it will be samba.schema instead of samba3.schema)

How did you create your users in the LDAP database? Did you use 
smbldap-tools?


It seems to me that you would benefit greatly by reading this:

http://www.samba.org/samba/docs/man/Samba-Guide/happy.html



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


Re: [Samba] Samba 3.4.7 with LDAP authentication

2011-10-06 Thread Miguel Medalha




passdb backend = ldapsam:ldaps://ldap1.example.com/
ldap ssl = no


You have ldap ssl = no and yet you are trying to connect to ldaps?

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


Re: [Samba] Samba 3.4.7 with LDAP authentication

2011-10-06 Thread Miguel Medalha



ldap user suffix = ou=people,dc=example,dc=com
ldap group suffix = ou=groups,dc=example,dc=com
ldap suffix = dc=example,dc=com


Since your suffix is already in ldap suffix, the other entries should be:

ldap user suffix = ou=people
ldap group suffix = ou=groups

Don't you need the entry ldap machine suffix?

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


Re: [Samba] Samba 3.4.7 with LDAP authentication

2011-10-06 Thread Miguel Medalha



[2011/10/06 13:48:38,  4] passdb/pdb_ldap.c:1600(ldapsam_getsampwnam)
   ldapsam_getsampwnam: Unable to locate user [amore] count=0
[2011/10/06 13:48:38,  3] auth/auth_sam.c:282(check_sam_security)
   check_sam_security: Couldn't find user 'amore' in passdb.
[2011/10/06 13:48:38,  2] auth/auth.c:320(check_ntlm_password)
   check_ntlm_password:  Authentication for user [amore] -  [amore] FAILED 
with error NT_STATUS_NO_SUCH_USER
[2011/10/06 13:48:38,  3] smbd/sesssetup.c:42(do_map_to_guest)
   No such user amore [FILESERVER] - using guest account
[2011/10/06 13:48:38,  4] passdb/pdb_ldap.c:2550(ldapsam_getgroup)
   ldapsam_getgroup: Did not find group, filter was 
((objectClass=sambaGroupMapping)(gidNumber=65534))


Are you sure that the LDAP database is correct? Are the user and group 
names in the correct places?


What is the output of pdbedit -L ?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba/LDAP/Win7 Domain Admins could not log in

2011-09-15 Thread Miguel Medalha
The Samba wiki page related to the use of Windows 7 with Samba contains 
the following statements:



«
There are currently two registry settings required to be added on the 
Windows 7 client prior to joining a Samba Domain. These are:


HKLM\System\CCS\Services\LanmanWorkstation\Parameters
DWORD  DomainCompatibilityMode = 1
DWORD  DNSNameResolutionRequired = 0
»


AND:

«
Do *not* edit any other registry parameters (NETLOGON) that have been 
seen in the wild. If you have already modified your Windows 7 registry, 
please make sure to reset the keys to their default values.


If you have changed the NETLOGON Parameters, make sure and turn them 
back to '1' as shown below:


»


The quoted page resides here:

http://wiki.samba.org/index.php/Windows7

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


Re: [CentOS] Two ftp clients? Why?

2011-08-02 Thread Miguel Medalha




 What I'm left wondering is:

 1) Why you are relying on PATH expansion for this from something as
 critical as a cron job.  It is good sysadmin practice to specify
 explicit paths for situations like this rather than to worry about
 whether or not there is a good or valid reason for there being 2 ftp
 clients installed on the system.

That was precisely my thought. I often noticed that people find it 
easier to blame others rather then questioning and rethinking their own 
actions...

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [Samba] Windows 7 client not mounting 'HOME' share.

2011-07-26 Thread Miguel Medalha




Workstations successfully registered with the PDC, users can login, 
profiles are found and updated, network shares are all mounted during 
login (logon script = %G.bat) except for the home directory of the user.




I met the same problem more than once and I found that I have to remove 
the corresponding entries from the LDAP database (sambaHomePath and 
sambaHomeDrive attributes). If these attributes are set, the user does 
not connect to his home service. The homedir needs to be only in smb.conf.



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


Re: [Samba] Windows 7 client not mounting 'HOME' share.

2011-07-26 Thread Miguel Medalha



On 2011-07-26 19:31, Miguel Medalha wrote:




Workstations successfully registered with the PDC, users can login, 
profiles are found and updated, network shares are all mounted during 
login (logon script = %G.bat) except for the home directory of the user.




I met the same problem more than once and I found that I have to 
remove the corresponding entries from the LDAP database 
(sambaHomePath and sambaHomeDrive attributes). If these attributes 
are set, the user does not connect to his home service. The homedir 
needs to be only in smb.conf.






I must add that, according to documentation, the home directory LDAP 
attributes need only to be set for a particular user if they differ from 
the general setting. Quoting from The Official Samba 3.5 HOWTO:


«
11.4.4.8 LDAP Special Attributes for sambaSamAccounts
The sambaSamAccount ObjectClass is composed of the attributes shown in 
next tables: Part A, and Part B.
The majority of these parameters are only used when Samba is acting as a 
PDC of a domain (refer to Domain Control, for details
on how to configure Samba as a PDC). The following four attributes are 
only stored with the sambaSamAccount entry if the values are non-default 
values:


• sambaHomePath
• sambaLogonScript
• sambaProfilePath
• sambaHomeDrive

These attributes are only stored with the sambaSamAccount entry if the 
values are non-default values. For example, assume
MORIA has now been configured as a PDC and that logon home = \\%L\%u was 
defined in its smb.conf file. When a user
named ‘becky’ logs on to the domain, the logon home string is expanded 
to \\MORIA\becky. If the smbHome attribute exists in
the entry ‘uid=becky,ou=People,dc=samba,dc=org’, this value is used. 
However, if this attribute does not exist, then the value
of the logon home parameter is used in its place. Samba will only write 
the attribute value to the directory entry if the value is

something other than the default (e.g., \\MOBY\becky).
»
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] MDB Files

2011-07-25 Thread Miguel Medalha



I have a problem with Ms Access *.MDB files.



Are you using Access 2007? Of course you are aware that Access 2007 
files have the .accdb extension?

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


Re: [Samba] Different permissions displayed in security tab andadvanced tab

2011-06-25 Thread Miguel Medalha




As for diffs on Security and Advanced tab -- see MS.
(It's a feature...they don't show the exact same info...but close)...



Yes. They are often referred to as molecular and atomic permissions.

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


Re: [Samba] Different permissions displayed in security tab andadvanced tab

2011-06-25 Thread Miguel Medalha



As for diffs on Security and Advanced tab -- see MS.
(It's a feature...they don't show the exact same info...but close)...



Atomic vs Molecular permissions
Quoting from http://blog.emagined.com/2009/12/08/windows-security-part-7/

«

(...) Although the exact permissions available depend on the particular 
version of Windows, these systems have two types of permissions, 
Molecular and Atomic. Molecular permissions, which are more high-level 
in nature, generally include ones such as the following:


- Full Control
- Modify
- Read-Execute
- Read
- Write
- Special Permissions (e.g., Take Ownership)

In contrast, Atomic (or Advanced) permissions are very granular in 
nature. They generally include the following types of access rights:


- Full Control
- Traverse Folder / Execute File
- List Folder / Read Data
- Read Attributes
- Read Extended Attributes
- Create Files/ Write Data
- Create Folders / Append Data
- Write Attributes
- Delete
- Read Permissions
- Change Permissions
- Take Ownership

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


Re: [CentOS] Slightly OT: First Time KVM and LVM on Centos

2011-06-13 Thread Miguel Medalha

 (...) I am hoping that someone here can give me some pointers, or point me to 
 some clear
 how-to's somewhere.  Any help is appreciated.  Thanks

Some good guides on virtualization and LVM reside here:

https://access.redhat.com/knowledge/docs/Red_Hat_Enterprise_Linux/

vmware also has some very useful documentation:

http://www.vmware.com/support/pubs/

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


  1   2   3   4   5   >