10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
i need my script1.sh to generate /tmp/temp.txt with full permissions i.e
-rwxrwxrwx 1 user1 users 23 Dec 16 10:52 /tmp/temp.txtmore script1.sh
umask 666
echo "hello">/tmp/temp.txt
But the script1.sh generates temp.txt with different permissions as shown below.
-rwxr-xr-x 1 user1 users... (6 Replies)
Discussion started by: mohtashims
6 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have set below option in following file /etc/inetd.conf in AIX.
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -u 2
But still it created the file with permission (640):
-rw-r----- 1 ftptosas ftpusrg 6091 Jul 28 12:23 diff_061920.txt
Required permission... (1 Reply)
Discussion started by: mageshpsv01
1 Replies
3. UNIX for Dummies Questions & Answers
Hello everyone,
I want to set my properties of my profile to umask 022 by default. I have an idea that i need to make the change in .profile file. Can you please help me, on how would i be able to set it.
Thanks,
Abhishek S. (4 Replies)
Discussion started by: abhisheksunkari
4 Replies
4. AIX
Hi all,
How do i change the default primary group of files uploaded in AIX (via ftp) in such a way that the files will be owned by tom:staff?
I understand that the default file permission can be set in /etc/profile for aix by adding a new line umask=032
Do I add a line in umask as well?... (5 Replies)
Discussion started by: chipahoys
5 Replies
5. UNIX for Dummies Questions & Answers
How can we set the Sticky bit in the umask itself. Please help me :confused:
I tried to set like umask 1000 but when I run umask, the value of umask is 00 (0 Replies)
Discussion started by: geniman2004
0 Replies
6. UNIX for Dummies Questions & Answers
How can I list the existing cron jobs in my system, and then how can I add my script to the cron jobs list? Thanks. (3 Replies)
Discussion started by: NycUnxer
3 Replies
7. Shell Programming and Scripting
dear all,
i'm trying to set the default permission using umask commnd. i'm using bash shell and the permission of the .bash_profile file is
-rwxr-x--- 1 tdmscrdr dba 370 Nov 7 12:21 .bash_profile
but still i'm not able to change the default permissiom.
in the .bash_profile... (1 Reply)
Discussion started by: panknil
1 Replies
8. Solaris
Is it possible to use environment variables within cron jobs. I am using a cron job to run a c program at regular intervals. The C program uses a library and i have set the library path in the LD_LIBRARY_PATH environment variable. But when i ran the job i got the error library not found!! Any... (1 Reply)
Discussion started by: atheek
1 Replies
9. 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
10. UNIX for Dummies Questions & Answers
Hi,
I am setting up an area on a unix server where multiple people will be editing web pages. Can anyone tell me how to set it up the directory and subdirectories so that when a user creates a new file, it defaults to permissions of 664 or 775?
I've tried using umask but from what I can... (1 Reply)
Discussion started by: robbieg
1 Replies