05-30-2010
Quote:
Originally Posted by
holocene
I just wish a separate step to chmod the files upon creation would not be required.
Depending on the environment you're building, resetting those user's
umask might prove helpful (or disastrous, as this approach is by no means folder-specific).
But why don't you implement a script to check and update the permissions of all files and folders in question at regular intervals by means of a root cron job ...?
This User Gave Thanks to dr.house For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
From within a directory, how do I determine whether I have write permission for it.
test -w pwd ; echo ?
This doesn't work as it returns false, even though I have write permission. (4 Replies)
Discussion started by: Sniper Pixie
4 Replies
2. UNIX for Dummies Questions & Answers
Read and write bits make sense for a directory but what about the execute permission bit
What does that imply?Is it just a filler?
Saurabh (3 Replies)
Discussion started by: smehra
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to copy a file from unix machine to a shared windows directory.
i tried using the ftp command but i was able to transfer the file only to my local directory.
Is there any way we can transfer/copy the files from unix to windows shared directory..........
Please help.
Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies
4. Filesystems, Disks and Memory
Hi
Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory..
how is it done
where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies
5. Solaris
how can I make a shared directory between two UNIX servers??? (6 Replies)
Discussion started by: mm00123
6 Replies
6. UNIX for Dummies Questions & Answers
Hi all.
Only one of the following makes any kind of sense as a possible permission field for a UNIX file. Which one?
--w-------
----rwxrwx
-r--------
--rwx-----
----r-----
I think it is no. 3. I dont think it would be 2, because why would you want to give groups and... (1 Reply)
Discussion started by: hawaiifiver
1 Replies
7. Shell Programming and Scripting
Hi,
How do i check if I have read/write/execute rights on a UNIX directory?
What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present.
if then......
And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies
8. UNIX for Dummies Questions & Answers
At work, we have a shared directory where we modify files via ssh. This can be an issue if two people unknowingly try to open and modify the same file. Sure, one user could send a mass e-mail/IM to the group, letting everyone know when he/she is accessing a file, but I was wondering if there was a... (2 Replies)
Discussion started by: jl487
2 Replies
9. Solaris
we want to allow user to FTP files into a directory, and then the program (PLSQL) will read and process the file, and then move the file to other directory for archiving.
the user id: uftp1, group: ftp
the program run in oracle database, thus have the user Id: oraprod, group: dba
how to... (2 Replies)
Discussion started by: siakhooi
2 Replies
10. UNIX for Dummies Questions & Answers
i have an application that writes to a directory. let's call the directory:
/var/app/
the permissions of this directory is:
drwxrwxr-x
Now the files that the application creates in this directory usually dont have read permissions for others.
i know there's something called... (3 Replies)
Discussion started by: SkySmart
3 Replies
GROUP(5) BSD File Formats Manual GROUP(5)
NAME
group -- format of the group permissions file
DESCRIPTION
The file </etc/group> consists of newline separated ASCII records, one per group, containing four colon ':' separated fields. These fields
are as follows:
group Name of the group.
passwd Group's encrypted password.
gid The group's decimal ID.
member Group members.
The group field is the group name used for granting file access to users who are members of the group. The gid field is the number associ-
ated with the group name. They should both be unique across the system (and often across a group of systems) since they control file access.
The passwd field is an optional encrypted password. This field is rarely used and an asterisk is normally placed in it rather than leaving
it blank. The member field contains the names of users granted the privileges of group. The member names are separated by commas without
spaces or newlines. A user is automatically in a group if that group was specified in their /etc/passwd entry and does not need to be added
to that group in the /etc/group file.
INTERACTION WITH DIRECTORY SERVICES
Processes generally find group records using one of the getgrent(3) family of functions. On Mac OS X, these functions interact with the
DirectoryService(8) daemon, which reads the /etc/group file as well as searching other directory information services to determine groups and
group membership.
FILES
/etc/group
SEE ALSO
passwd(1), setgroups(2), crypt(3), getgrent(3), initgroups(3), passwd(5), DirectoryService(8)
BUGS
The passwd(1) command does not change the group passwords.
HISTORY
A group file format appeared in Version 6 AT&T UNIX.
Mac OS X July 18, 1995 Mac OS X