I am working on a test machine.
I just discovered that I have misunderstood the way the following command is run.
This command do exactly what I want. Change the owner of every things from the named folder and in all child folders.
But of course it leave untouched all hidden object like '.some_dir' and '.some_file'
So I run the following command ( and problem arise )
I can see on the screen that the command is climbing up one directory level doing something like
What is the correct command to change every things without climbing up one level.
should change the owner of the folder /some_folder and all its files and sub-directories.
If you don't want to change the ownership of /some_folder the following will work for all hidden files with the second character being lower-case letters:
so it will pick up files such as .bashrc but not .SciTEUser.properties.
Obviously you can extend the pattern to allow upper-case and numerals if necessary.
Attention: the SysV chown changes the target of symbolic links; normally you want to change the owner of the symbolic links so you need the -h option
(old Linux chown was different, like BSD chown).
In a shell glob the [!.] is any character but a dot. (A few shells have [^.] in addition, that is not portable).
Perhaps you can include the parent directory? Then it becomes simple:
Hi All,
I need your help in changing the owner of a directory.
I have a created a direcotry TEST with user "abc"....for the group "ftp".
Now i wnated to change the owner of the directory TEST.
i used the below command to do so:
chown abc:sftp TEST
This is giving me an error... (5 Replies)
Hello
My oracledatabase creats some xmlfiles. this files has the owner hugo. now I've a script (how runs als hugo2) and this script will insert this XMLFile into the database. But that doesn't work, because the owner of the files is wrong, and hugo has not the rights to insert this files into... (3 Replies)
hi,
I'm connecting to a web server with ftp protocol and I would like to change some folders and files owner. I tried chown but it is not available.
I typed "help" and this is the list I got. Is possible that the chown command is not installed on the server ? Or I don't have permissions ?... (8 Replies)
hello
i want shell script.
i have a source.txt
/home/user409/public_html/test/
/home/user09876/public_html/xdsss/
/home/user9765/public_html/320xxx/
.
.
.
maybe 1000 lines
i want .
1.read a source.txt
2.untar special.tar.gz into these directory in source.txt
3.i want to... (14 Replies)
hi
i wrote a script to run 'C' executable which will create a new file, after that util is completed, i have to change the file ownership to some other user. for that i used "chown" for changing the file permission in Korn script
:confused:but it is throwing error is "operation... (2 Replies)
I have a strange problem in my Linux box (Suse). Recently I took over this box as admin even though I have no prior admin experience. Following is my issue
I had following users under 'root' group initially
user1
user2
user3
Since I did not like user ids under root group. I modifed these... (9 Replies)
hello
chown not change ownership
before:
205:system ~kuku
chown kuku:system ~kuku
after no change
205:system ~kuku
aix box
can someone help me?
ariec (2 Replies)