08-22-2016
How to set multiple ownership permission on a file/directory?
Hi,
Any ideas to set multiple ownership permission on a file/directory on Solaris? I need a folder to have multiple ownership on the 2 nodes servers. The 2 nodes servers require to mount a SMBFS with different user ID. Please assist. Thanks.
10 More Discussions You Might Find Interesting
1. Linux
all the files and directories in my system are owned by root only.i try to(from root loggin) change the permission on the file but not permitted.can any one help to fix my problem .also while installing any software always error occur like no makefile available (1 Reply)
Discussion started by: jop
1 Replies
2. Red Hat
Hi,
I am using redhat AS 3. Recently, I was asked to implement a security control on the OS: to change ownership of /var/log/wtmp to root:sys and permission to 600. However, when I made the change and reboot the machine, everything was reverted. How come? Please help.
The following is the... (1 Reply)
Discussion started by: voa2mp3
1 Replies
3. UNIX for Advanced & Expert Users
Folks,
I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
Discussion started by: scottrus
6 Replies
4. Shell Programming and Scripting
Hi, all!
Is it possible to use umask and to set the file permission level as 775?
I know I can add chmod into my scripts but I just want to explore the umask option.
Thanks! (1 Reply)
Discussion started by: visio2000
1 Replies
5. Shell Programming and Scripting
I want to change the permission of a file when it gets created in a particular directory. For instance, I have directory MyDir. Everytime a file gets created in that directory, I would like to change the permission to 777.
The context is that I have a 3rd party appication running as root. Only... (2 Replies)
Discussion started by: laiko
2 Replies
6. Shell Programming and Scripting
Here is the sample code I'm trying to execute. I see that the permission on the file is set to 755 always I want to change it to 777. Please help me with this.
code :
#!/usr/bin/perl
use File::Path qw(make_path remove_tree);
my $path = "2010/sam";
make_path($path,{mode=>0777});
... (1 Reply)
Discussion started by: hansini
1 Replies
7. UNIX for Dummies Questions & Answers
I'm trying to setup a directory structure for my staff which enables them full access to files in the directories with their name, and have access to anything in the shared directory. The directory structure looks like this:
root@www10 # ls -l
total 56
drwxr-xr-x 7 internal internal 4096... (3 Replies)
Discussion started by: v_greg
3 Replies
8. UNIX for Advanced & Expert Users
Default file system currently is 664.
I would like to get it as 774.
As other users of the same group was not able execute the file created any any user.
chmod cannot be used in my case. (Files are created and executed the programs owned by different vendors)
we know that umask is not going... (3 Replies)
Discussion started by: deepakwins
3 Replies
9. Shell Programming and Scripting
Hi All,
can some one suggest me a tool to compare file ownership/permission and contents of files located at two different unix servers?
Thanks,
Pranav (1 Reply)
Discussion started by: Pranav Bhasker
1 Replies
10. AIX
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
LEARN ABOUT MOJAVE
drvconfig
drvconfig(1M) System Administration Commands drvconfig(1M)
NAME
drvconfig - apply permission and ownership changes to devices
SYNOPSIS
drvconfig [-bn] [-a alias_name] [-c class_name] [-i drivername] [-m major_num] [-r root_dir]
DESCRIPTION
devfsadm(1M) is now the preferred command and should be used instead of drvconfig.
The default operation of drvconfig is to apply permission and ownership changes to devices. Normally, this command is run automatically
after a new driver has been installed (with add_drv(1M)) and the system has been rebooted.
OPTIONS
The following options are supported:
-aalias_name Add the name alias_name to the list of aliases that this driver is known by. This option, if used, must be used with the -m
major_num, the -b and the -i drivername options.
-b Add a new major number to name binding into the kernel's internal name_to_major tables. This option is not normally used
directly, but is used by other utilities such as add_drv(1M). Use of the -b option requires that -i and -m be used also. No
/devices entries are created.
-cclass_name The driver being added to the system exports the class class_name. This option is not normally used directly, but is used
by other utilities. It is only effective when used with the -b option.
-idrivername Only configure the devices for the named driver. The following options are used by the implementation of add_drv(1M) and
rem_drv(1M), and may not be supported in future versions of Solaris:
-mmajor_num Specify the major number major_num for this driver to add to the kernel's name_to_major binding tables.
-n Do not try to load and attach any drivers, or if the -i option is given, do not try to attach the driver named drivername.
-rroot_dir Perform operations under root_dir, rather than directly under root.
EXIT STATUS
0 Successful completion.
non-zero An error occurred.
FILES
/devices Device nodes directory
/etc/minor_perm Minor mode permissions
/etc/name_to_major Major number binding
/etc/driver_classes Driver class binding file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
sh(1), add_drv(1M), modinfo(1M), modload(1M), modunload(1M), rem_drv(1M), update_drv(1M), path_to_inst(4), attributes(5), devfs(7FS)
SunOS 5.10 9 Aug 2004 drvconfig(1M)