Sponsored Content
Top Forums UNIX for Advanced & Expert Users FTP failed to copy mulitple files from multiple directory Post 302572181 by Corona688 on Wednesday 9th of November 2011 10:02:18 AM
Old 11-09-2011
Try starting with
Code:
cd /home/mylogin/Test2/Important_Doc/
mget *

instead. It may be that it doesn't have permissions to access one of these folders and fails.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

failed to access directory thru ftp

Hi all, I am a beginner to unix and ftp too.So i request your valuable comments. Requirement: I want to put a specific file into a server(linux) and under a particular directory path in that server as /caps/details/data/ Problem : I login to that server through the command `ftp... (1 Reply)
Discussion started by: DILEEP410
1 Replies

2. UNIX for Dummies Questions & Answers

Copy files from a directory by ftp

Hi all, I have to enable users to access a folder by ftp. Could you tell me which configurations files I must modify or create? Thanks (3 Replies)
Discussion started by: hippa77
3 Replies

3. Shell Programming and Scripting

ftp multiple files from same directory

Hi there Gurus, I have the following ftp script: $ more ftp_dump_arch4.sh #! /usr/bin/ksh # Constant variables HOST='xx.xx.xx.xx' USER='user' PASSWD='password' dir='/export/file' ftp_log='/tmp' ftp -n $HOST > $ftp_log/ftp.log << END user $USER $PASSWD verbose lcd $dir bin (3 Replies)
Discussion started by: lweegp
3 Replies

4. UNIX for Dummies Questions & Answers

Can I copy files on remote server with ftp ?

I just realize the only way is to download and upload again.. is not possible to copy them remotely with the ftp protocol ? thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

5. UNIX for Dummies Questions & Answers

How to copy all files into the same directory

Dear All, Again I have another simple question. :confused: I want to write a csh which can copy all files of a current directory with a new name in the same directory, I mean: If I have tree bird apple as files in a directory I want to give ,say number 007 as argument to my csh and it copies... (3 Replies)
Discussion started by: dreamer0085
3 Replies

6. Shell Programming and Scripting

Copy files from multiple directories into one directory without overwriting them

I have several directories and all those directories have .dat files in them. I want to copy all those .dat files to one directory say "collected_directory" The problem is I don't want to overwrite files. So, if two file names match, I don't want the old file to be overwritten with a new one. ... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

7. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

8. Red Hat

Unable to copy files due to many files in directory

I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs.. even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies

9. Shell Programming and Scripting

Copy the files in directory and sub folders as it is to another directory.

How to copy files from one directory to another directory with the subfolders copied. If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*. I do not want to create sub folders in folder2. Can copy command create them automatically? I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies

10. UNIX for Beginners Questions & Answers

How to copy particular files from a multiple directories and paste in a new directory?

Dear all I have a multiple directories, say for example org1, org2, org3 ..... org100 and each directory having a file namely dnaG.fasta. I need to copy all the dnaG.fasta file from each directory and paste in another directory fastconcatg. Therefore, my script has to copy dnaG.fasta file from... (5 Replies)
Discussion started by: dineshkumarsrk
5 Replies
MAILDIRACL(1)						      Double Precision, Inc.						     MAILDIRACL(1)

NAME
maildiracl - manage access control lists SYNOPSIS
maildiracl {-reset} {maildir} maildiracl {-list} {maildir} {INBOX[.folder]} maildiracl {-set} {maildir} {INBOX[.folder]} {[-]identifier} {[+/-]rights} maildiracl {-delete} {maildir} {INBOX[.folder]} {[-]identifier} maildiracl {-compute} {maildir} {INBOX[.folder]} {identifier...} DESCRIPTION
maildiracl manages "access control lists" (or ACLs) of the Courier IMAP server maildir folders. Access control lists are used primarily to provide fine-grained control for accessing virtual shared folders via IMAP. Note The Courier IMAP server server implements two types of shared folders: filesystem permission-based shared folders, as well as virtual shared folders based on IMAP access control lists. Use the maildiracl command to set up access control lists for virtual shared folders. Use the maildirmake(1)[1], command to implement shared folders based on filesystem permissions. See the Courier IMAP server documentation for additional information on setting up virtual shared folders. ACL overview ACLs provide a fine-grained mechanism for controlling access to shared folders. ACLs may be used to specify, for example, that user1 may only open and read the messages in the folder; and user2 can not only do that, but also delete messages, and create subfolders. Each folder maintains its own individual access control list, that specifies who can do what to the folder. An ACL is a list of "identifier" and "rights" pairs. Each "identifier" and "rights" pair means that an entity called "identifier" (using the UTF-8 character set) is allowed to do "rights" on this folder. "rights" consists of one or more letters, each letter signifies a particular action: a identifier may modify this folder's ACLs. c identifier may create subfolders of this folder (this includes renaming another folder as this folder's subfolders). e identifier may remove deleted messages from this folder. i identifier may add messages to this folder (either uploading them one by one, or copying messages from another folder). l identifier may actually see that this folder exists. If identifier does not have the "l" right on this folder, the folder is effectively invisible to identifier. r identifier may open this folder. Note that if identifier knows the name of this folder, it can open it even if identifier does not the "l" right on this folder. s identifier may mark messages in this folder as seen, or unseen. t identifier may mark messages in this folder as deleted, or undeleted. w identifier may change other status flags of messages in this folder. May also add or remove custom keywords on individual messages. x identifier may delete this folder (which includes renaming this folder as another mailbox's subfoler. Negative rights An ACL entry of "-identifier" and "rights" is called a "negative right", which explicitly removes "rights" from "identifier". More than one "identifier" is usually used to determine the actual rights someone has for the given folder. The actual access rights are determined by taking all rights from all applicable identifier, than subtracting any negative rights, as specified in the following section. Identifiers Access rights on a given folder are computed by obtained the rights on the following identifiers, then subtracting the negative rights on the same identifiers: owner The owner of the maildir containing this folder. The maildir's INBOX's ACL defaults to all rights for its owner. A new folder's ACL is the same as its parent's ACL. In all cases, trying to remove the "a" right from the owner (either directly or using a negative right) results in an error. anyone This identifier refers literally to every userid. The associated rights (or negative rights) are always used. anonymous This is a synonym from "anyone". user=loginid Rights (or negative rights) for IMAP account "loginid". Note "loginid" is what's logged to syslog after a succesful login. In some situations "loginid" is not exactly the actual login ID used by the IMAP client. group=name Rights (or negative rights) for account group "name". Access rights are granted to an account group as a whole. The account options feature of the Courier Authentication Library specifies which account belongs to which account group. See courier-authlib's documentation for more information. administrators This is an alias for "group=administrators". Accounts that are members of an account group called "administrators" are considered administrative accounts, and automatically receive all access rights on all accessible folders. Consider the following access control list: owner aceilrstwx anyone lr user=john w -user=mary r administrators aceilrstwx This access control list specifies that the folder's owner has complete control over the mailbox (as well as the administrators, which have complete access to every folder); everyone else can see it and open it, except for "mary" who can see that the mailbox exists, but can't open it; additionally, "john" can change the status and keywords of individual messages (but not mark them as deleted/undeleted or seen/unseen, which requires additional rights). OPTIONS
maildiracl -reset maildir This command resets access control lists in maildir which as a path to a maildir. Under certain conditions, the files where a folder's ACLs are saved may continue to exist after the folder is removed. The -reset options goes through maildir and removes all stale ACL files for removed folders. Note The Courier IMAP server normally performs this maintenance function automatically. It is not necessary to run this command under normal conditions. maildiracl -list maildir folder This command lists the access control lists set for folder. folder must be either "INBOX" or "INBOX.folder.subfolder", which is the same naming convention for the Courier IMAP server. maildiracl -set maildir folder identifier rights Puts identifier (which may begin with a minus sign to specify a negative right) and rights in folder's access control list. Existing rights for identifier (or identifier) are replaced by rights unless "rights" begins with "+" or "-", which modifies the existing rights by adding or removing from them accordingly. Some examples: maildiracl -set /home/user1/Maildir INBOX.Sent user=john lr maildiracl -set /home/user2/Maildir INBOX.Notes anyone -r maildiracl -set /home/user3/Maildir INBOX.Private -user=tom +r Note Observe that the last command revokes the "r" right from "tom", by adding it as a negative right. maildiracl -delete maildir folder identifier This command removes identifier from folder's access control list, if it exists. Use "-identifier" to remove negative rights. maildiracl -compute maildir folder [identifier]+ This command takes a list of one or more identifiers. All access rights for the identifiers are combined together, then any appropriate negative rights are removed, and the result is printed on standard output. Use the following procedure to compute access rights the same way as they are computed by the Courier IMAP server: maildiracl -compute /home/tom46/Maildir INBOX.Sent owner user=tom46 This command computes access rights "tom46" has on his own folder. maildiracl -compute /home/john34/Maildir INBOX.Public user=tom46 This command computes access rights "tom46" has on "john34"'s folder. IRREVOCABLE ACCESS RIGHTS
The owner of the mailbox must always have the "a" amd "l" access rights. The administrators group must always have all access rights to all folders. Attempts to set access control lists, that do not include these minimum access rights, will be rejected. BUGS
All identifiers are specified using the UTF-8 character set. All non-Latin letters in folder names are specified using the modified-UTF7 coding as used in IMAP. This implementation of access control lists is based on version 2 (or "ACL2") of IMAP access control lists, which is a work-in-progress. The existing IMAP ACL, RFC 2086[2] is transparently implemented inside the ACL2 model. If history's of any guidance, ACL2 is subject to change at any time. Be sure to check the release notes when upgrading to a newer version of this software. The "ACL overview" portion of this manual page is a very brief summary of ACL2, which leaves out optional parts of ACL2 that are not implemented. SEE ALSO
maildirmake(1)[1], maildirkw(1)[3], AUTHOR
Sam Varshavchik Author NOTES
1. maildirmake(1) [set $man.base.url.for.relative.links]/maildirmake.html 2. RFC 2086 http://www.rfc-editor.org/rfc/rfc2086.txt 3. maildirkw(1) [set $man.base.url.for.relative.links]/maildirkw.html Courier Mail Server 08/31/2011 MAILDIRACL(1)
All times are GMT -4. The time now is 05:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy