05-04-2011
chown
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 the database. how can I change the owner without root rights? Thanks for the support.
roger
10 More Discussions You Might Find Interesting
1. AIX
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)
Discussion started by: ariec
2 Replies
2. UNIX for Advanced & Expert Users
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)
Discussion started by: praveenkumar_l
9 Replies
3. UNIX for Dummies Questions & Answers
Hi
Can anybody please let me know the usage of Chgrp command with an example???
Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: ilayans
2 Replies
5. UNIX for Dummies Questions & Answers
is there a difference in chown on a file or a directory?
how do i chown a directory and all the contents? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
6. AIX
I'm a owner of directories or files why I can't deliver the ownership of them up to other users? (1 Reply)
Discussion started by: kang
1 Replies
7. Shell Programming and Scripting
I have a file fin2009_4.txt.gz in the unix ftp server. Owner of the file is: ftpusr.
-rw-r--r-- 1 ftpusr sap 0 Feb 19 10:19 fin2009_4.txt.gz
When I try to delete this file after copying to my home folder, I am getting the following error.
rm: fin2009_4.txt.gz1: override... (4 Replies)
Discussion started by: sid1982
4 Replies
8. Shell Programming and Scripting
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)
Discussion started by: ch33ry
5 Replies
9. UNIX for Dummies Questions & Answers
I am trying to change the directory to owner of Sybase. But I get permission denied. I did login as root.
newd1> ls -l
total 58
drwxr-xr-x 2 prod develop 5 Oct 17 06:51 bin
drwxr-xr-x 2 prod develop 7 Oct 17 07:18 etc
dr-xr-xr-x 1 root root 1... (15 Replies)
Discussion started by: samnyc
15 Replies
10. Shell Programming and Scripting
I am working on a test machine.
I just discovered that I have misunderstood the way the following command is run.
chown -Rv some_user:users /some_folder/*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... (13 Replies)
Discussion started by: jcdole
13 Replies
files(4) Kernel Interfaces Manual files(4)
NAME
files - File control database (Enhanced Security)
DESCRIPTION
The file control database (/etc/auth/system/files) is designed to help the Information System Security Officer (ISSO) maintain the
integrity of the system. The database contains entries for system data files and executable files that require certain attributes. Some
files require certain attributes to provide protection against unauthorized access, while others require a specific set of attributes to
accomplish their intended function.
The database is used by the library routine create_file_securely() to determine the set of attributes for a newly created file. Many pro-
grams associated with the trusted computing base (TCB) use this library routine for file creation to ensure that file attributes are set
correctly.
A broad range of attributes can be specified in the file control database. Specific choices depend upon the exact system configuration.
These choices are as follows: This field specifies the owner name for the entry. If an owner name is not specified and the entry is created
using create_file_securely, the owner of the file will be the real user ID of the process creating the file. This field specifies the
group name for the entry. If a group name is not specified and the entry is created using create_file_securely, the group of the file will
be the real group ID of the process creating the file. This field specifies the mode word for the entry. If the mode word is not specified
and create_file_securely is used to create the entry, a mode word of 0 (zero) is assigned to the new file. This field identifies the type
of the entry. This field is not taken into account by create_file_securely when a file is being created. The library routine will only
create regular files. Choices for the type field are as follows: Regular file Directory FIFO device (pipe) Character special device Block
special device Socket
EXAMPLES
The following example is a typical file control database entry for the program /sbin/newfs: /sbin/newfs:f_owner=root:f_group=bin:
:f_type=r:f_mode#04111:
:chkent: This entry specifies that the newfs program has bin as its owner and group, that it is a regular file, and that its mode
is 0111
The following example shows an entry for a site-specific directory that contains help files for an application:
/appl/help_files:f_owner=appadmin:f_group=appl: :f_type=d:f_mode#0750: :chkent; This entry specifies the owner of the
/appl/help_files directory as appadmin, the group as appl, and the mode as 0750.
FILES
Specifies the pathname of the file control database.
RELATED INFORMATION
Functions: getprfient(3)
Files: authcap(4) delim off
files(4)