11-28-2000
quote site chmod 0 filename
will tell the ftp server to execute a 'chmod 0 filename', which basically removes all read, write, and execute rights for the filename you specify. Of course, this will only work if you have the appropriate rights.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've got 100 directories that each have 2 directories with in them.
Structered like this:
/home/domains/domain1/
through to
/home/domains/domain100/
and those 2 directories mentioned above are here:
/home/domains/domain1/directory1/
/home/domains/domain1/directory2/
through to... (7 Replies)
Discussion started by: Neko
7 Replies
2. UNIX for Dummies Questions & Answers
Is there a wayto chmod via ftp for my webpage and change all files and folders from one point down?
There is way too many files and folders in this to do one at a time.
Thanks! (3 Replies)
Discussion started by: stormiee
3 Replies
3. Shell Programming and Scripting
Hello everybody !
Excuse me guys. I posted this In EXPERT group as well, but they don't seems to find this problem of that level, so posting it here as well..
I am developing a FTP script which will copy all the files from one server to another server and then I need to use CHMOD 755 * to... (1 Reply)
Discussion started by: sdlayeeq
1 Replies
4. UNIX for Advanced & Expert Users
have installed a Network Management System at HP and when I tried to connect to Sun for Extractor function, it shows" incompatible protocol version:3". What does it mean? How to slove the problem?
Thanks a lot, Emily (1 Reply)
Discussion started by: yaoww
1 Replies
5. UNIX for Advanced & Expert Users
We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for
unix machine.
Has anyone used chmod command in association with site command in ftp? How it should be used?
Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies
6. Shell Programming and Scripting
Hi. I am new to shell scripting.
I am writing a simple sequential logic script. After completing the script, the instructions say "use the sh command instead of the chmod comand".
Why didn't I have to use "chmod ugo+x scriptname",& then type ./ scriptname or just scriptname after using chmod?... (3 Replies)
Discussion started by: Ccccc
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I want to transfer file using ftp protocol .
I m using following linux distribution.
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description: Oracle VM server release 2.2.0
Release: 2.2.0
Codename: ... (5 Replies)
Discussion started by: pinga123
5 Replies
8. UNIX for Dummies Questions & Answers
I copy home directory, file /etc/passwd, file /etc/group, file /etc/master.passwd
to the new server.
This is result of "ls/home" on the old server.
drwxr-xr-x 3 user1 user1 512 Aug 3 2012 user1
drwxr-xr-x 19 user2 user2 2560 Jan 9 09:24... (4 Replies)
Discussion started by: cyberking
4 Replies
CHMOD(2) System Calls Manual CHMOD(2)
NAME
chmod - change mode of file
SYNOPSIS
chmod(name, mode)
char *name;
DESCRIPTION
The file whose name is given as the null-terminated string pointed to by name has its mode changed to mode. Modes are constructed by ORing
together some combination of the following:
04000 set user ID on execution
02000 set group ID on execution
01000 save text image after execution
00400 read by owner
00200 write by owner
00100 execute (search on directory) by owner
00070 read, write, execute (search) by group
00007 read, write, execute (search) by others
If an executable file is set up for sharing (-n or -i option of ld(1)) then mode 1000 prevents the system from abandoning the swap-space
image of the program-text portion of the file when its last user terminates. Thus when the next user of the file executes it, the text
need not be read from the file system but can simply be swapped in, saving time. Ability to set this bit is restricted to the super-user
since swap space is consumed by the images; it is only worth while for heavily used commands.
Only the owner of a file (or the super-user) may change the mode. Only the super-user can set the 1000 mode.
SEE ALSO
chmod(1)
DIAGNOSTIC
Zero is returned if the mode is changed; -1 is returned if name cannot be found or if current user is neither the owner of the file nor the
super-user.
ASSEMBLER
(chmod = 15.)
sys chmod; name; mode
CHMOD(2)