12-16-2005
changing default file permissions
How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r-----
How can I change this default behavior?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA.
chmod `ls -l fileA | awk '{pr
int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1),
substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies
2. UNIX for Advanced & Expert Users
Hello !
When I connect to a RH FTP server, the files I transfer (from my "windows computer") to this server have the following permissions : -rw------- but I would like those files to have the following permissions : - rw-rw-r-x
How can I do that ??? :)
Thanks for your help !
G. (6 Replies)
Discussion started by: guix
6 Replies
3. UNIX for Advanced & Expert Users
Hi!
My question is this:
Is it possible to change the default permissions in UNIX (666 for files and 777 for directories)?.
I am not talking about using the command "umask".
I mean, with the command "umask" you can modify permissions from a default permissions x. Is it possible to make... (4 Replies)
Discussion started by: chicoGuapo
4 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777???
Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies
5. UNIX for Dummies Questions & Answers
if I have a file set to permisions 444 (r-- r-- r--) should anyone other than the owner and root be able to change these permissions or delete the file.
Apologies if this is a no-brainer but I cant test it myself and someone in our organisation is playin around with files they shouldnt be (1 Reply)
Discussion started by: ajcannon
1 Replies
6. Cybersecurity
I'm doing a security sweep of a Sun Sol 5.8 system. The file: /dev/console, which links to /devices/pseudo/cn@0:console, has the following perms: crw--w--w- I would like to get rid of the world write permissions. I can change the file permissions, but as soon as log back in, they are changed... (4 Replies)
Discussion started by: ErnieG
4 Replies
7. Shell Programming and Scripting
does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it.
Display current users. Display user Ids only.
Display... (10 Replies)
Discussion started by: live2learn
10 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script that gives a passed file the "755" access permissions. The shell script should:
Change... (0 Replies)
Discussion started by: anix007
0 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script that gives a passed file the "755" access permissions. The shell script should:
Change... (5 Replies)
Discussion started by: anix007
5 Replies
10. Shell Programming and Scripting
Hi,
I have used expdp for datapump. The .dmp file is created by the "oracle" user.
my requirement is to make a zipped file of this .dmp file.
What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
LEARN ABOUT OSF1
rcvstore
rcvstore(1) General Commands Manual rcvstore(1)
NAME
rcvstore - incorporate new mail asynchronously
SYNOPSIS
rcvstore [+folder] [-[no]create] [-help] [-sequence name] [-[no]public] [-[no]zero]
OPTIONS
Creates the specified folder. If you attempt to incorporate mail into a folder that does not exist, rcvstore creates the folder if you sup-
ply the -create option. If you supply the -nocreate option, the folder is not created and rcvstore exits. The default is -create. Prints a
list of the valid options to this command. Sets the read permissions of sequences. Normally, when you create a sequence with the -sequence
option, the sequence is not accessible to other MH users. The -public option makes the sequence accessible to other MH users. You can use
the -nopublic option to ensure that the sequence that you create is only accessible to yourself. Specifies a sequence in which rcvstore
places the messages which it incorporates. For more information on sequences, see mark(1). The name of the sequence must begin with a let-
ter, and must consist entirely of alphabetic or numeric characters; no punctuation is allowed. Specifies whether to zero existing
sequences before adding new messages. Normally, rcvstore removes all existing messages from a sequence before adding messages to it. If you
specify the -nozero option, rcvstore adds the messages it finds to the existing contents of the sequence. This option only works with the
-sequence option.
The defaults for this command are:
+folder defaults to +inbox -create -nopublic if the folder is read-only, otherwise -public -nozero
DESCRIPTION
The command rcvstore incorporates a message from the standard input into an MH folder. If a +folder argument is not given the file is
placed in your +inbox folder. The new message being incorporated is assigned the next highest number in the folder.
If the specified (or default) folder does not exist, it is created if the -create option is specified; otherwise rcvstore exits.
If your file contains a Msg-Protect: entry, it is used as the protection on the newly created messages; otherwise the MH default of 0600 is
used. During all operations on messages, this initially assigned protection is preserved for each message. You can use chmod to change the
protection on an individual message, and the new protection is preserved thereafter.
The rcvstore command incorporates anything except zero length messages into your MH folder.
If the profile entry Unseen-Sequence: is present and non-empty, then rcvstore adds the newly incorporated message to each sequence named by
the profile entry. Note that rcvstore does not zero each sequence prior to adding messages.
PROFILE COMPONENTS
Path: To determine your Mail directory
Folder-Protect: To set protections when creating a new
folder
Msg-Protect: To set protections when creating a new mes-
sage
Unseen-Sequence: To name sequences denoting unseen messages
FILES
The user profile.
SEE ALSO
chmod(1), inc(1), mark(1), pick(1), mh-mail(4), mh_profile(4)
rcvstore(1)