Visit Our UNIX and Linux User Community

Top Forums UNIX for Dummies Questions & Answers Write (save time) Permission set Post 302851263 by Scott on Saturday 7th of September 2013 10:38:55 PM
Old 09-07-2013
Can you confirm that the umask is properly set before you start the application?

Otherwise it may be that the application is not using the value of umask when it creates files, in which case you may need to find an alternative solution, such as using a cronjob.
Test Your Knowledge in Computers #166
Difficulty: Easy
The Internet is a packet-switched network.
True or False?

10 More Discussions You Might Find Interesting

1. Debian

Turning on write-permission in Debian?

How can i do that? Is it safe? Why is it disabled by default? Thanks /Richard ++ ie: the program to write to other users on my computer. -- (3 Replies)
Discussion started by: riwa
3 Replies

2. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

3. UNIX for Dummies Questions & Answers

Vi, write something then try to save & quit.

If I'm in Vi, write something then try to save & quit. :wq I get: "myvifile" "myvifile" E212: Can't open file for writing Press ENTER or type command to continue It won't let me save... Is it because other users on the network have access to the file also? Or I don't have permission to save? Thanks... (5 Replies)
Discussion started by: JudoMan
5 Replies

4. UNIX for Dummies Questions & Answers

How can I set save daylight time

Hi everybody... I am using IBM unix server . Server take time options from satellite but server is not include true setting . What can I do? (2 Replies)
Discussion started by: deox
2 Replies

5. UNIX for Dummies Questions & Answers

Need to remove Group write permission .

How would i write a command that can find all the objects under the etc directory that have group write permission enabled and have not been accessed in the last X days. This is what i got from internet souce but i m not able to modify it according to my distribution. find /etc -perm... (1 Reply)
Discussion started by: pinga123
1 Replies

6. Debian

Write permission for USB device

Hello, I need to run an application in wine that requires write permission to a USB device. Wine users must not have root privileges. On FreeBSD this could be accomplished by adding the user to the wheel group but I am using Debian 6.0. From looking at the passwd file it is not obvious what... (6 Replies)
Discussion started by: snorkack59
6 Replies

7. Red Hat

useradd w/o write permission on /etc/passwd

Hi root user creates a user using the useradd command. This command creates an entry in the /etc/passwd file. /etc/passwd file has rw permission for the root user. Now, if I happen to remove the w permission for the root user, useradd command still is successfully creating entry in the... (3 Replies)
Discussion started by: guruprasadpr
3 Replies

8. UNIX for Dummies Questions & Answers

Save cron job get permission denied

After I edit the cron job by using crontab -e and using :wq! to save, i got following error message: "/tmp/crontabxvaarX" 1 line, 60 characters crontab: /tmp/crontabxvaarX: Permission denied Could anyone please help? (1 Reply)
Discussion started by: Alex Li
1 Replies

9. Red Hat

SE Linux write permission denied

Hi, In my server I am getting below errors in "/var/log/messages": Oct 8 14:45:44 LKOGOMEEMM01 kernel: type=1400 audit(1444295744.792:15818): avc: denied { write } for pid=53421 comm="ip" path="/var/VRTSvcs/log/tmp/IPMultiNIC-8" dev=dm-0 ino=2754879 scontext=system_u:system_r:ifconfig_t:s0... (4 Replies)
Discussion started by: rochitsharma
4 Replies

10. UNIX for Beginners Questions & Answers

Setting write permission for particular user

Hi All, We have a scenario in production where we want only one user from a group to modify the file. The file is not set to write permission for application manager. -r--r--r-- 1 amgr u00 15661716 Aug 30 00:06 DCI.dat So here amgr will have permission to edit the file. We want a... (10 Replies)
Discussion started by: arunkumar_mca
10 Replies
nischmod(1)							   User Commands						       nischmod(1)

nischmod - change access rights on a NIS+ object SYNOPSIS
nischmod [-AfLP] mode name... DESCRIPTION
nischmod changes the access rights (mode) of the NIS+ objects or entries specified by name to mode. Entries are specified using indexed names (see nismatch(1)). Only principals with modify access to an object may change its mode. mode has the following form: rights [, rights]... rights has the form: [ who ] op permission [ op permission ]... who is a combination of: n Nobody's permissions. o Owner's permissions. g Group's permissions. w World's permissions. a All, or owg. If who is omitted, the default is a. op is one of: + To grant the permission. - To revoke the permission. = To set the permissions explicitly. permission is any combination of: r Read. m Modify. c Create. d Destroy. Unlike the system chmod(1) command, this command does not accept an octal notation. OPTIONS
The following options are supported: -A Modify all entries in all tables in the concatenation path that match the search criteria specified in name. This option implies the -P switch. -f Force the operation and fail silently if it does not succeed. -L Follow links and change the permission of the linked object or entries rather than the permission of the link itself. -P Follow the concatenation path within a named table. This option is only applicable when either name is an indexed name or the -L switch is also specified and the named object is a link pointing to an entry. EXAMPLES
Example 1: Using the nischmod Command This example gives everyone read access to an object. (that is, access for owner, group, and all). example% nischmod a+r object This example denies create and modify privileges to group and unauthenticated clients (nobody). example% nischmod gn-cm object In this example, a complex set of permissions are set for an object. example% nischmod o=rmcd,g=rm,w=rc,n=r object This example sets the permissions of an entry in the password table so that the group owner can modify them. example% nischmod g+m '[uid=55],passwd.org_dir' The next example changes the permissions of a linked object. example% nischmod -L w+mr linkname ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be searched until the object is found (see nisdefaults(1)). EXIT STATUS
The following exit values are returned: 0 Successful operation. 1 Operation failed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
chmod(1), nis+(1), nischgrp(1), nischown(1), nisdefaults(1), nismatch(1), nis_objects(3NSL), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit SunOS 5.10 10 Dec 2001 nischmod(1)

Featured Tech Videos

All times are GMT -4. The time now is 10:29 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy