its happend after restart.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting its happend after restart.
# 1  
Old 09-29-2004
its happend after restart.

From Sept 12th onwards i am facing some problem in the file permission.
Normally the file get generated by a script with the permission 666 and
from sept 12th onwards it get changed to 644
If we create a blank file using touch command it is with the permission 666,
but the files which are generated through any program is of 644.

Checked the umask value in /sbin/rc and is default value 022. And nobody make
any change for this value for the past 2 years.

We had a server re-boot happen on sept 12th. But i am not sure that this is the
reason for file permission change.



HP-UNIX
model -9000/899
version - D
# 2  
Old 09-29-2004
To get 666 you need a umask of 0. To get 644 you need a umask of 022. Type "umask" and see what you have. What shell are you using? What version of HP-UX? Probably someone changed your .profile file or whatever startup script your shell uses.
# 3  
Old 10-01-2004
If u type umask in the command prompt it is showing as 00
the setting of umask in /sbin/rc is 022.
But this setting is not changed for the past 2 years. we are facing the problem since sept 12th 2004.
. profile also not modified for the past 1 year.
$ uname -a
HP-UX uapkb010 B.10.20 D 9000/800 1266844351 64-user license

Please suggest some solution to get rid of this problem..
# 4  
Old 10-01-2004
Put "umask 022" in your .profile file.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

sshd not able to restart

Hi, I was able to putty a few server (Solaris 10) of mine using hostname, but when i change to ip address, it shows login as: root Using keyboard-interactive authentication. Password: Access denied I change PermitRootLogin to yes. I tried to do a sshd restart, however ... (6 Replies)
Discussion started by: beginningDBA
6 Replies

2. Shell Programming and Scripting

restart parameter

I have a shell script with 4 separate functions taking place, one after the other. Is there a way to introduce a parameter so that if the job fails, then I can restart it at a specific point in the script ? Ideally, the default will be null (or 1), so that it will not normally be set, and the... (4 Replies)
Discussion started by: malts18
4 Replies

3. Shell Programming and Scripting

How to restart a script?

Hello, I created a shell script in /etc/init.d and it already runs at boot. However I cannot figure out how to make it run just like typing "scrip_name start" I can run it like this ./script_name but since I am doing remote log in whenever I log off the script stops and I also don't want to run... (8 Replies)
Discussion started by: kizofilax
8 Replies

4. Red Hat

Restart SMSPI

I know this sounds silly but im not sure where my smspi is located. I want to restart the services but im not sure where to look at. I dont have init.d in my /sbin : # cd /sbin # cd init.d -bash: cd: init.d: No such file or directory Its running at this time: -bash-3.00$ ps -ef... (2 Replies)
Discussion started by: hedkandi
2 Replies

5. Shell Programming and Scripting

Restart a Service!!

Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process. ---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Discussion started by: linuxaddict7
5 Replies

6. Shell Programming and Scripting

Where does the 8 come from? (or what happend to the first `)

$ ksh $ echo "\047"0"\047" result: 8' (6 Replies)
Discussion started by: R.T.
6 Replies

7. Shell Programming and Scripting

What happend?

Hi everybody: Could anybody tell me how I can solve this mistake. I have two files and i would like one, so I use the cat command, like always: cat file1.dat file2.dat > file3.dat But the first line from file2.dat is concatenated with the last line from file1.dat: file1.dat... (2 Replies)
Discussion started by: tonet
2 Replies

8. SuSE

Restart process

I have a process that gradually eats up memory, it's currently at 80.2% and slowing down the linux server > ps aux | grep SNMPME root 3129 0.0 80.2 3591752 2480700 ? Sl Feb13 5:04 /opt/nampe/lib/snmpme/SNMPME config/startup.xml Is there a command I can execute to restart this... (3 Replies)
Discussion started by: brendan76
3 Replies

9. UNIX for Dummies Questions & Answers

Postfix Restart

I am really really new on UNIX system. I am trying to update our e-mail list. I added/deleted new members at etc/aliases but e-amil always got old e-mail lists. I reloaded postmaster but does not seem to be working. Anybody has any idea? (4 Replies)
Discussion started by: kumarrana
4 Replies
Login or Register to Ask a Question