06-12-2009
I can use the site command in ftp to change the permissions.
ftp> site chmod 777 some_file
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HI,
I am not really even a newbie I'm just posing as one until our sys admin gets back from vacation.
I am getting errors downloading certain files from an NT Server onto our inhouse Unix fileserver.
Certain files always return errors when downloading to their proper directory.... (2 Replies)
Discussion started by: newbie10
2 Replies
2. UNIX for Dummies Questions & Answers
I am running sco openserver 5.0.6 and I was wondering if I could ftp files to one of my other servers and that file have full permissions set automatically on the new server.
I have searched the internet and manned chmod chown and ftp but they only seem to talk about giving the permissions after... (7 Replies)
Discussion started by: stufine
7 Replies
3. HP-UX
We have an application running on Win2K and this application ftp files to HP-UX using ftpdc as user id. The files are created in HP-UX with following permissions:
-rw-r----- 1 ftpdc users 968321 Apr 12 22:57 aaaa.txt
There is a job that runs on HP-UX trying to modify this file using the... (7 Replies)
Discussion started by: Anamika
7 Replies
4. HP-UX
Hi,
I have a problem with my ftp accounts whereby if any external ftp party connects to our server and puts any file in a directory on our server. The file permissons are always -rw-r----- and no read for others.
I have adjusted the ftp user .profile to include 'umask 022' but this only works... (3 Replies)
Discussion started by: budrito
3 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Ok I have a couple of little problems that I can't for the life of me work out how to solve. I wasn't involved in setting the server up, I've just "inherited" the support for it. I've done my best to be a good little newbie, researched articles, tried things out and managed to only get... (1 Reply)
Discussion started by: Andy68man
1 Replies
6. UNIX for Advanced & Expert Users
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... (3 Replies)
Discussion started by: gauravsachan
3 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I am trying to grant FTP acccess to my server for a WebDesigner to be able to upload live and see how it looks online.
I created a new user (WebDes:tomcatUsers) and created his home dir as /var/lib/tomcat5/webapps/uPhoto/ and then made sure he CHROOT's to his home dir so he only... (1 Reply)
Discussion started by: boarderstu
1 Replies
8. UNIX for Dummies Questions & Answers
hi,
how can I see permissions through ftp connection ?
I can't see them using "ls -l" as in the local system..
thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Quick question, im going to find this a bit hard to explain but ill give it a go.
Basically i have an admin account on an FTP server that i want to be able to control ALL files without having to use sudo (as i need to run cron scripts to move files that are owned by a number of... (2 Replies)
Discussion started by: mokachoka
2 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys,
i have learned today that when you ftp a file with full write permissions (777) to another destination it loses the w options. so a file that was once -rwxrwxrwx(before FTP) is now -rw-r--r-- (after FTP). why does this happen? and is it configurable?
Regards, (8 Replies)
Discussion started by: brian112
8 Replies
LEARN ABOUT OPENSOLARIS
netrc
netrc(4) File Formats netrc(4)
NAME
netrc - file for ftp remote login data
DESCRIPTION
The .netrc file contains data for logging in to a remote host over the network for file transfers by ftp(1). This file resides in the
user's home directory on the machine initiating the file transfer. Its permissions should be set to disallow read access by group and oth-
ers. See chmod(1).
Tokens can be separated by SPACE, TAB, or NEWLINE characters. The following tokens are supported:
account string Supply an additional account password. If this token is present, the auto-login process supplies the specified string if
the remote server requires an additional account password. If the remote server does not require an additional account
password, the auto-login process initiates an ACCT command.
default Same as machine name, except that default matches any name. There can be only one default token, and it must be after
all machine tokens. The default token is normally used as follows:
default login anonymous password user@site
Such an entry gives the user automatic anonymous ftp login to machines not specified in .netrc.
login name Identify a user on the remote machine. If this token is present, the auto-login process initiates a login using the
specified name.
machine name Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the
remote machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent
.netrc tokens are processed, stopping when the EOF is reached or another machine token is encountered.
macdef name Define a macro. This token functions the same as ftp macdef. A macro is defined with the specified name; its contents
begin with the next .netrc line and continue until a null line (consecutive NEWLINE characters) is encountered. If a
macro named init is defined, it is automatically executed as the last step in the auto-login process.
password string Supply a password. If this token is present, the auto-login process supplies the specified string if the remote server
requires a password as part of the login process. If this token is present in the .netrc file, ftp aborts the auto-login
process if the .netrc is readable by anyone besides the user.
skipsyst Skip the SYST command that is sent by default to all remote servers upon connection. The system command is what enables
the automatic use of binary mode rather than the protocol default ascii mode.
As some older servers cannot handle the ftp command, this directive is provided to allow inter-operability with these
servers.
EXAMPLES
Example 1 A Sample .netrc File
A .netrc file containing the following line:
machine ray login demo password mypassword
allows an autologin to the machine ray using the login name demo with password mypassword.
FILES
~/.netrc
SEE ALSO
chmod(1), ftp(1), in.ftpd(1M)
SunOS 5.11 25 Aug 2006 netrc(4)