The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To give the "unzip" permissions & "create" file permissions Mike1234 HP-UX 3 03-02-2008 05:34 PM
How to retain the header information of a file ahjiefreak UNIX for Dummies Questions & Answers 0 12-04-2007 07:21 PM
Retain 3 latest files kamathg Shell Programming and Scripting 6 08-24-2007 06:51 AM
parse an arpwatch file and retain most recent mac CM64 Shell Programming and Scripting 8 04-12-2007 01:21 AM
how to retain text using pax idic5 UNIX for Dummies Questions & Answers 11 04-07-2004 11:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-13-2007
gauravsachan gauravsachan is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 8
How to retain file permissions during FTP on Solaris 5.9 ?

Hi All,
I am trying to ftp a file :

-rw-rw-rw- 1 oraclepbdw dba filename.txt

from Machine A ( where umask is 022) to Machine B (umask 022)
but the file changes to

-rw-rw-r-- 1 ftpamle3 ftaml filename.txt

Dur some constraints the group of the users on either side cant be changed .
Can we somehow change the permission using chmod in ftp itself ?
or, any other solution.....
(remotehelp on ftp prompt shows SITE ... but dont know the proper syntax)
Please advice !!!!
  #2 (permalink)  
Old 04-13-2007
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Your client may support it. Try:
chmod 666 filename.txt
if that doesn't work try:
site chmod 666 filename.txt
  #3 (permalink)  
Old 04-26-2007
varungupta varungupta is offline
Registered User
  
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 206
Hey,
U can use the tar command to restore the permissions, group members, etc.
  #4 (permalink)  
Old 04-26-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
yes, from "man tar":
Quote:
`--preserve'
Synonymous with specifying both `--preserve-permissions' and
`--same-order'.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0