02-21-2012
How to create a file with 777 permission.?
Hi Guys,
I want to know is there any method to create a file having 777 permission. I am aware of umask, since it is only giving max. 666 permission for files this is not fulfilling my needs.
Thanks in advance
---------- Post updated at 12:49 AM ---------- Previous update was at 12:31 AM ----------
Quote:
Originally Posted by
sanoop
Hi Guys,
I want to know is there any method to create a file having 777 permission. I am aware of umask, since it is only giving max. 666 permission for files this is not fulfilling my needs.
Thanks in advance
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Please provide your inputs..
Thanks in Advance,
Mansa (1 Reply)
Discussion started by: mansa
1 Replies
2. Cybersecurity
User usrA creates dirA directory and runs chmod 777 on the directory. Can usrB issue another 777 on dirA? It appears the answer is no even if the usrA and usrB are part of the same group. I know this is a rare scenario but I just ran across it and found out that usrB receives an error when... (4 Replies)
Discussion started by: zlek131
4 Replies
3. Solaris
Hello Guruz,
Relay bad condition :mad:
Some has changed the permission to 777 recursively for /usr/bin directory by mistake. Now all the permission looks to be 777 on /usr/bin
Hence I am so many system related errors as 1 show below.
When I am trying to change the password, I am getting... (5 Replies)
Discussion started by: bullz26
5 Replies
4. Shell Programming and Scripting
In my script, I am creating a file ----> then writting one line (i.e. Timestamp) ----> then FTP'ing. The same script can be executed by many other users.
While other users executing this script, they couldn't Over write this one line (i.e. Timestamp)
My expectation
So I wanted to create a... (2 Replies)
Discussion started by: sbmk_design
2 Replies
5. Shell Programming and Scripting
Here is the sample code I'm trying to execute. I see that the permission on the file is set to 755 always I want to change it to 777. Please help me with this.
code :
#!/usr/bin/perl
use File::Path qw(make_path remove_tree);
my $path = "2010/sam";
make_path($path,{mode=>0777});
... (1 Reply)
Discussion started by: hansini
1 Replies
6. Shell Programming and Scripting
Hi All,
Is there any unix(solaris) command to get file permissions in 777 format or do we need to write some script for it? (7 Replies)
Discussion started by: rishav
7 Replies
7. UNIX for Dummies Questions & Answers
ANy reasons?
FILESYSTEM not FULL, PERMISSION is 777, but cant write to the filesystem?
any steps to do? reasons for this? (9 Replies)
Discussion started by: kenshinhimura
9 Replies
8. Shell Programming and Scripting
Hello,
I am looking for a UNIX shell script which can help me for access restriction.
1) /home/ram, there are number file with .txt extension, which should be only owned "ram" user.
like as below
ls -lrt *.txt
-rwx------ 1 ram dba 11 Jan 4 2015 PASS1.txt
-rwx------ 1 ram dba 10 Jan 4... (8 Replies)
Discussion started by: mr.trilok
8 Replies
9. Programming
Hi All,
I'm looking for JAVA code to create file in Linux with specific permission
File should be created and saved in Linux in this path \opt\sys\doc by Java with this permission 764
Anyone can help to provide this Java code (3 Replies)
Discussion started by: AbuAliiiiiiiiii
3 Replies
LEARN ABOUT MOJAVE
mkfifo
MKFIFO(1) BSD General Commands Manual MKFIFO(1)
NAME
mkfifo -- make fifos
SYNOPSIS
mkfifo [-m mode] fifo_name ...
DESCRIPTION
mkfifo creates the fifos requested, in the order specified. By default, the resulting fifos have mode 0666 (rw-rw-rw-), limited by the cur-
rent umask(2).
The options are as follows:
-m Set the file permission bits of newly-created fifos to mode, without respect to the current umask.
The mode is specified as in chmod(1). In symbolic mode strings, the ``+'' and ``-'' operators are interpreted relative to an assumed
initial mode of ``a=rw''
mkfifo requires write permission in the parent directory.
mkfifo exits with 0 if successful, and with >0 if an error occurred.
LEGACY DESCRIPTION
In legacy mode, the fifo's file permission bits are always limited by the current umask.
For more information about legacy mode, see compat(5).
SEE ALSO
mkdir(1), rm(1), umask(1), mkfifo(2), umask(2), compat(5), mknod(8)
STANDARDS
The mkfifo utility is expected to be IEEE Std 1003.2-1992 (``POSIX.2'') compliant.
HISTORY
mkfifo command appeared in 4.4BSD.
4.4BSD January 5, 1994 4.4BSD