Sponsored Content
Full Discussion: Umask Issues
Top Forums UNIX for Dummies Questions & Answers Umask Issues Post 51411 by chimpu on Wednesday 19th of May 2004 12:00:37 PM
Old 05-19-2004
Network Umask Issues

I am having a major issue with our server...
In our web application, we have a feature by which a client can upload a file and submit the page...

This was a feature which was working fine till recently...we changed the server and I guess some settings changed.

Now it keeps throwing an apache error saying file not writable and pointing to the folder where i want it to be uploaded.

I initially changed the rights using chmod
When that didnt work I checked the umask and found it was 077

The two users who would access the folder belong to the same group ....

I tried changing this setting in several ways.
1) directly going to the folder umask 022
2) changing /etc/.login which had a setting 077 to 022

however it keeps reverting back to 077 ....

Smilie
Please help
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Issues with umask

Are there any known issues with umask. I have having a problem that some of the new files are not created with the default permissions of umask 002. Wondering if anyone of you could have an answer to this Cheers, Neeraj (1 Reply)
Discussion started by: neerajchallana
1 Replies

2. UNIX for Dummies Questions & Answers

umask

in this unix book that i have, it says: the statement: filedes = open(pathname, O_CREAT, mode); is actually filedes = open(pathname, O_CREAT, (~mask)&mode); /* ~ is the negation symbol */ like it's doing some type of masking. for example, fd =... (1 Reply)
Discussion started by: bb00y
1 Replies

3. UNIX for Dummies Questions & Answers

umask

the umask on solaris must return 022 or 0022 wich one is correct and why? thanks, pa (2 Replies)
Discussion started by: rsh
2 Replies

4. AIX

Umask help

I changed the umask in /etc/security/user to 027. I changed the umask in /etc/profile to 027. My current shell is ksh. My .profile doesn't make any changes to umask or call other scripts that change umask. Running AIX 5.3 I still get a umask of 022 instead of the expected 027. I have no... (1 Reply)
Discussion started by: x96riley3
1 Replies

5. Linux

help on umask

hai guys , i am having problem in getting the knowledge about umask. actually when i am putting command as umask some value is coming like 0022 by defalut. we can change its value also. but the main thing is thye file permisiion actually depends upon umask.how is it depends upon umask i want to... (6 Replies)
Discussion started by: suvendu4urs
6 Replies

6. UNIX for Dummies Questions & Answers

umask

Hi, I have a doubt on the umask values. Why is the UMASK value is different from file and directory? Suppose if the umask value is 0022. The file permissions for a newly created file is 644 and the file permissions for a newly created directory is 755. My doubt is why can't it be the... (1 Reply)
Discussion started by: praveen_b744
1 Replies

7. UNIX for Dummies Questions & Answers

Umask

I need to set a umask of 022 for my ssh sessions, or within my profile. I have set the umask in both bash_profile and bashrc. and when i run umask i get 0022 but when i create a file i get, # touch test.txt # ls -l test.txt -rw------- 1 root root 0 Apr 26 12:25 test.txt it seems like... (1 Reply)
Discussion started by: felix001
1 Replies

8. UNIX for Advanced & Expert Users

umask

Hi, Please, let me know how the umask is working? As per my understanding is aprt from subtracting from 666/777, logical gate operation is performing. Ex: If I set uname 011, it gave the permission like 666 for file. Request you to explain which gate's operation performed. $uname 011... (4 Replies)
Discussion started by: Nagapandi
4 Replies

9. AIX

UMASK

How do I change the umask for a NIS user? Thanks steve (1 Reply)
Discussion started by: steve.lavoie
1 Replies

10. UNIX for Dummies Questions & Answers

Umask help!

Hi guys, I want all new files and directories created, or copy file give this permisson "rwxrwx---", with chmod i do this with octal value "770". If i execute "umask 770" the permissons is not the same with new or copy file. How can i configure this command? I do not understand the "man... (1 Reply)
Discussion started by: Xedrox
1 Replies
Package::DeprecationManager(3)				User Contributed Perl Documentation			    Package::DeprecationManager(3)

NAME
Package::DeprecationManager - Manage deprecation warnings for your distribution VERSION
version 0.13 SYNOPSIS
package My::Class; use Package::DeprecationManager -deprecations => { 'My::Class::foo' => '0.02', 'My::Class::bar' => '0.05', 'feature-X' => '0.07', }; sub foo { deprecated( 'Do not call foo!' ); ... } sub bar { deprecated(); ... } sub baz { my %args = @_; if ( $args{foo} ) { deprecated( message => ..., feature => 'feature-X', ); } } package Other::Class; use My::Class -api_version => '0.04'; My::Class->new()->foo(); # warns My::Class->new()->bar(); # does not warn My::Class->new()->bar(); # does not warn again DESCRIPTION
This module allows you to manage a set of deprecations for one or more modules. When you import "Package::DeprecationManager", you must provide a set of "-deprecations" as a hash ref. The keys are "feature" names, and the values are the version when that feature was deprecated. In many cases, you can simply use the fully qualified name of a subroutine or method as the feature name. This works for cases where the whole subroutine is deprecated. However, the feature names can be any string. This is useful if you don't want to deprecate an entire subroutine, just a certain usage. You can also provide an optional array reference in the "-ignore" parameter. The values to be ignored can be package names or regular expressions (made with "qr//"). Use this to ignore packages in your distribution that can appear on the call stack when a deprecated feature is used. As part of the import process, "Package::DeprecationManager" will export two subroutines into its caller. It provides an "import()" sub for the caller and a "deprecated()" sub. The "import()" sub allows callers of your class to specify an "-api_version" parameter. If this is supplied, then deprecation warnings are only issued for deprecations for api versions earlier than the one specified. You must call the "deprecated()" sub in each deprecated subroutine. When called, it will issue a warning using "Carp::cluck()". The "deprecated()" sub can be called in several ways. If you do not pass any arguments, it will generate an appropriate warning message. If you pass a single argument, this is used as the warning message. Finally, you can call it with named arguments. Currently, the only allowed names are "message" and "feature". The "feature" argument should correspond to the feature name passed in the "-deprecations" hash. If you don't explicitly specify a feature, the "deprecated()" sub uses "caller()" to identify its caller, using its fully qualified subroutine name. A given deprecation warning is only issued once for a given package. This module tracks this based on both the feature name and the error message itself. This means that if you provide several different error messages for the same feature, all of those errors will appear. BUGS
Please report any bugs or feature requests to "bug-package-deprecationmanager@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. DONATIONS
If you'd like to thank me for the work I've done on this module, please consider making a "donation" to me via PayPal. I spend a lot of free time creating free software, and would appreciate any support you'd care to offer. Please note that I am not suggesting that you must do this in order for me to continue working on this particular software. I will continue to do so, inasmuch as I have in the past, for as long as it interests me. Similarly, a donation made in this way will probably not make me work on this software much more, unless I get so many donations that I can consider working on free software full time, which seems unlikely at best. To donate, log into PayPal and send money to autarch@urth.org or use the button on this page: <http://www.urth.org/~autarch/fs-donation.html> CREDITS
The idea for this functionality and some of its implementation was originally created as Class::MOP::Deprecated by Goro Fuji. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.18.2 2012-03-09 Package::DeprecationManager(3)
All times are GMT -4. The time now is 12:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy