Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-2011, 08:56 PM
Starter Member
 
Posts: 2
Question Importing shadow file with special character

I used a script in wiki to create a zmprov file to migrate a password. The file looks like this:-


ma anthony@medic.xxx.edu.my userPassword '{crypt}$1$$zJPUhyStfGSV9o8lf.tAa0'
ma aneip@medic.xxx.edu.my userPassword '{crypt}$1$$xzLdYyir1/ZNdxKT.mAa2/'

When I try to run the file through zmprov there, the command will be split to a new line.. something like this

ma anthony@medic.xxx.edu.my userPassword '{crypt}$1$
$zJPUhyStfGSV9o8lf.tAa0'
ma aneip@medic.xxx.edu.my userPassword '{crypt}$1$
$xzLdYyir1/ZNdxKT.mAa2/'

I open the file through vi, then I can see there are special character ^A after second $ in the crypt. This special character force the command to split into 2. How can I escape this character so it's can feed as 1 line to zmprov?

About 70% of line have this ^A character.
Reply With Quote
  #2 (permalink)  
Old 02-26-2011, 07:47 PM
Starter Member
 
Posts: 2
Default

if seems ^A is chr(01) - ascii code 1.

Anyway to escape this character to zmprov?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.