Sponsored Content
Top Forums UNIX for Advanced & Expert Users Automate setting of group permissions Post 302515134 by mregine on Tuesday 19th of April 2011 07:49:32 AM
Old 04-19-2011
It seems the admins have done that for me. I didn't realize that when I posted.

What remains is the problem of making everything in the directory group-writable automatically. I seem to remember that that's what I kept on forgetting when editing group web pages in the past (I just haven't done it in a while).

Is there a way to set the umask for a particular directory or something? Maybe along the lines of:
Code:
if expr $PWD : <directory> >/dev/null
then
    umask u=rw,g=rw,o=
fi

But how do I get that excecuted every time I log on to work on group web pages, but not when I log on to work on my personal web page? .bashrc won't work... It would have to be read after I cd to the directory :-/
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

root group permissions

Hello, Another newbie here and here is my dilemma. I created an account for me on Solaris 8 and I added myself to the root group. But when I login using that account I am unable to do superuser tasks.. (add users, admintool, etc). What am I missing? Thanks in advance.. Andre (5 Replies)
Discussion started by: jacobsa
5 Replies

2. Filesystems, Disks and Memory

group permissions/webserver

Hi, there is one strange situation with directory permissions that I run into every now and then, and now I face it a gain with a webserver. Situation (example): drwxrwsr-x 14 user www-data 4096 Jul 28 11:06 . drwxr-xr-x 2 www-data www-data 4096 Jul 28 11:06 subdir -rwxr-xr-x 1... (3 Replies)
Discussion started by: doozer
3 Replies

3. UNIX for Dummies Questions & Answers

Help setting up file permissions

Hi, I'm in the process of writing a system (in Java) where a user can register to become a member of a website. When they register, a collection of directories and files get created by the application. For example if a user with the name 'fred' registered they would get the following drwxr-xr-x... (0 Replies)
Discussion started by: andrewpmoore
0 Replies

4. UNIX for Dummies Questions & Answers

Setting permissions

I've been told I need to set the permissions for everything in the htdocs folder to 777, but how do I go about doing this? Thanks:o (9 Replies)
Discussion started by: thehaapyappy
9 Replies

5. AIX

bin group strange permissions

I was doing a little playing around with permissions on a 5.3 box in the office and wanted to make it so that it does not take root permission to delete a users home directory once they are deactivated or deleted in smit. the default permissions are 755 with bin as both user and group I noticed... (2 Replies)
Discussion started by: dgaixsysadm
2 Replies

6. UNIX for Dummies Questions & Answers

Group permissions

Hi, I've created a user named fwadmin, group named fwadmin and made the user belong to that group. I created the user and group using the 'User Manager' in Centos. The user belongs to /etc/fw.Does this also mean that the group fwadmin belongs to /etc/fw. That is what I want. But when I... (4 Replies)
Discussion started by: anaigini45
4 Replies

7. Solaris

Group Permissions - How to tell the difference

I am a member of a few different user groups. I would like to see what the difference is.... Can anyone tell me how to look at permissions side by side ? We are using : SunOS xxxxxx 5.10 Generic_127111-09 sun4u sparc SUNW,Sun-Fire-V440 Thanks ! (10 Replies)
Discussion started by: popeye
10 Replies

8. UNIX for Dummies Questions & Answers

Root group permissions

Hi everybody, which are the root group permissions and how can I give to a user these rights? Thanks in advance. (2 Replies)
Discussion started by: bmayao
2 Replies

9. UNIX for Advanced & Expert Users

Can we Automate the User creation and setting password through a script in solaris 10

Hi, I am using Solaris 10 OS and Bash shell.Is there any way can we automate User creation and setting passwords through a script or any freeware tool. Advance thanks for your response. (1 Reply)
Discussion started by: muraliinfy04
1 Replies

10. UNIX for Advanced & Expert Users

Group permissions question

I have a user who has had an id change. His old id was xl00 his new id b000999. Both id's are in group bauser. The user now cannot access his old files even though he is in the same group and permissions seem to be ok. See below, first 2 files he can't see, second two are no problem. ... (2 Replies)
Discussion started by: dw82199
2 Replies
cups-files.conf(5)						    Apple Inc.							cups-files.conf(5)

NAME
cups-files.conf - file and directory configuration file for cups DESCRIPTION
The cups-file.conf file configures the files and directories used by the CUPS scheduler, cupsd(8). It is normally located in the /etc/cups directory. Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character. DIRECTIVES
The following directives are understood by cupsd(8). Consult the on-line help for detailed descriptions: AccessLog filename AccessLog syslog Defines the access log filename. ConfigFilePerm mode Specifies the permissions for all configuration files that the scheduler writes. DataDir path Specified the directory where data files can be found. DocumentRoot directory Specifies the root directory for the internal web server documents. ErrorLog filename ErrorLog syslog Specifies the error log filename. FatalErrors none FatalErrors all -kind [... -kind] FatalErrors kind [... kind] Specifies which errors are fatal, causing the scheduler to exit. "Kind" is "browse", "config", "listen", "log", or "permissions". FileDevice Yes FileDevice No Specifies whether the file pseudo-device can be used for new printer queues. FontPath directory[:directory:...] Specifies the search path for fonts. Group group-name-or-number Specifies the group name or ID that will be used when executing external programs. LogFilePerm mode Specifies the permissions for all log files that the scheduler writes. PageLog filename PageLog syslog Specifies the page log filename. Printcap Printcap filename Specifies the filename for a printcap file that is updated automatically with a list of available printers (needed for legacy applica- tions); specifying Printcap with no filename disables printcap generation. RemoteRoot user-name Specifies the username that is associated with unauthenticated root accesses. RequestRoot directory Specifies the directory to store print jobs and other HTTP request data. ServerBin directory Specifies the directory where backends, CGIs, daemons, and filters may be found. ServerCertificate filename Specifies the encryption certificate to use. ServerKey filename Specifies the encryption key to use. ServerRoot directory Specifies the directory where the server configuration files can be found. SystemGroup group-name [group-name ...] Specifies the group(s) to use for System class authentication. TempDir directory Specifies the directory where temporary files are stored. User user-name Specifies the user name or ID that is used when running external programs. SEE ALSO
classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), mime.types(5), printers.conf(5), subscriptions.conf(5), http://localhost:631/help COPYRIGHT
Copyright 2007-2012 by Apple Inc. 19 November 2012 CUPS cups-files.conf(5)
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy