chown doesn't work


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users chown doesn't work
# 8  
Old 03-03-2006
chown doesn't work

Hi,

I was going through the chain. I too face the same problem. I use a Solaris9 SPARC server. I have the /etc/system file, but I do not have any rstchown entry in that file. Why is it still giving me problems?

Thanks.

Last edited by mahatma; 03-03-2006 at 09:21 AM.. Reason: Typo
# 9  
Old 03-03-2006
If rstchown isn't set in your /etc/system, then it's taking the default of rstchown - there are many parameters that can be set in /etc/system - the defaults are taken if no entry is in /etc/system. Find out what the default is, and then you know what you may or may not have to change. Changes to /etc/system require a reboot. May I also suggest that if you do make changes to /etc/system, you make a backup copy of the /etc/system that did work (allowed you to boot) so that when you start making your changes and the server won't boot at all, you can revert back to the good one by booting with the -a option (which asks questions such as what system file it should use) - once booted from the 'good' backup system file, you can fix your mistakes in the 'bad' /etc/system and boot again.

See rstchown

And I would suggest if it isn't set in your /etc/system, that you look at permissions on the directory (and start a new thread instead of taking over someone else's).
# 10  
Old 03-06-2006
RTM,

following are my directory permissions. The directory is in my home area. I can create directory/file and can delete them too.


$ ls -ld dummy
drwxr-xr-x 2 ashishp cluser 96 Mar 3 11:34 dummy/
$




-Ashish
# 11  
Old 03-07-2006
The chown man page states that POSIX_CHOWN_RESTRICTED is enabled by default - this means if you want to change the option, you would have to add set rstchown = 0 to /etc/system and reboot.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

-ne 0 doesn't work -le does

Hi, I am using korn shell. until ] do echo "\$# = " $# echo "$1" shift done To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work. Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies

2. Shell Programming and Scripting

Why my awk doesn't work?

root@SDP_Wildcat_Pass-3-C1:~# cat /proc/driver/rtc rtc_time : 05:29:40 rtc_date : 2014-12-19 alrm_time : 01:51:53 alrm_date : 2014-12-20 alarm_IRQ : no alrm_pending : no update IRQ enabled : no periodic IRQ enabled : no periodic IRQ... (4 Replies)
Discussion started by: yanglei_fage
4 Replies

3. UNIX for Dummies Questions & Answers

Why doesn't this work?

find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \; Returns this failure: mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies

4. Shell Programming and Scripting

Lipo doesn't work

Hi guys, Am using lipo to merge ppc and i386 version of a static/dylib file based on "file type to load". I am working on Mac OS 10.5.6 and new to shell scripting. Please help me out. This is my code. echo "This file combine ppc and i386 file to form universal library" echo "source... (4 Replies)
Discussion started by: vishwesh
4 Replies

5. Shell Programming and Scripting

What to do when mtime doesn't work?

I have a folder that I need to search for new files and copy on the latest. I've been using "-mtime -1" in my command line but it doesn't seem to work. I've been meaning to fine a different script because files are dropped into the folder all day long and because of the -mtime, I've only be... (19 Replies)
Discussion started by: bbbngowc
19 Replies

6. Shell Programming and Scripting

alias doesn't work

Hi I have put alias ll='ls -la' in .profile file but it doesn't work. On hand it works it looks like the .profile file is not beeing read. How to check whitch file is loaded? ,profile? .bash_profile? My system: SunOS mion 5.10 Generic Shell: /bin/pfksh Thanks (2 Replies)
Discussion started by: miojamo
2 Replies

7. UNIX for Dummies Questions & Answers

my make doesn't work

hi I wrote the following makefile, I have just one problem, when i type make clean I get the message make 'clean' is up to date and any obj file is removed from my folder, what's wrong? Thank you CC = cc all: es.o elaboration.o $(CC) -o es es.o elaboration.o elaboration.o:... (0 Replies)
Discussion started by: Puntino
0 Replies

8. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

9. Shell Programming and Scripting

Why doesn't this work?

cat .servers | while read LINE; do ssh jason@$LINE $1 done exit 1 ./command.ksh "ls -l ~jason" Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing? Thanks! JP (2 Replies)
Discussion started by: jpeery
2 Replies
Login or Register to Ask a Question