- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to set umask
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:32 PM
06-12-2001 01:32 PM
How to set umask
How can I set umask in my .profile for the file mode creation either 777 ( rwxrwxrwx ) ?
Regards,
Abel Berger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:42 PM
06-12-2001 01:42 PM
Re: How to set umask
umask a+rwx but I not have a succeful.
Why ?
Any idea ?
Regards
Abel Berger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:58 PM
06-12-2001 01:58 PM
Re: How to set umask
You are thinking backwards. Set your umask in .profile like 'umask 000'; this will not mask off any bits. BTW - 000 is a dangerous umask are you sure you want everyone to be able to access your files?
A more typical would be 022 (only I can cwrite to my files) or 002 (only I or members of mt group can write to my files).
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 02:03 PM
06-12-2001 02:03 PM
Re: How to set umask
Max what you can obtain are permissions:
rw-rw-rw- for files and
rwxrwxrwx for directories.
But this is not recommended from the security reasons.
Recommended umas is 022 or 002. The first results in
rw-r--r-- for files and rwxr-xr-x for directories whereas
the second results in rw-rw-r-- for files and rwxrwxr-x for directories.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 02:12 PM
06-12-2001 02:12 PM
Re: How to set umask
In this box I don?t have root acess but a
script create files that later I need execute
they, but in .profile umask is set 0022, then
the files was created rw-rw-rw. Of course I
can rack every .profile on this box but I changed umasks and created a arquivo, for example, touch test, and it appear as below :
-rw-rw-rw , I can?t change for umask for arquive will create with rwxrwxrwx, What is
happen ?
Could you help me ??
Thanks.
Abel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 02:20 PM
06-12-2001 02:20 PM
Re: How to set umask
I need that every files for him created
stay rwxrwxrwx , JUST for this user.
I hope this helps.
Abel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 05:06 PM
06-12-2001 05:06 PM
Re: How to set umask
Your script that creates the files may be setting umask and thus overrideing any umask in .profile. After your script creates the file, you could add a lne to chmod 777 $filename.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 05:43 PM
06-12-2001 05:43 PM
Re: How to set umask
It is important to note that rwxrwxrwx or rw-rw-rw- permissions are very harmful to the content of files and directories. Anyone can destroy or corrupt the contents of these files or directories. If these files/directories must be shared, strongly consider the use of group permissions to reduce the risk of data corruption.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2001 05:33 AM
06-13-2001 05:33 AM
Re: How to set umask
I need execute files created this way :
rw-rw-rw ( umask 0022 ).
It is impossible. First I need change the permissions but I don?t have.
Second way I would can change the umask,
but how ? how ?
Regards
Abel Berger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 07:47 AM
06-14-2001 07:47 AM
Re: How to set umask
I don't quite understand what it is you are trying to do, but I STRONGLY recommend you heed the warnings about the umask and file permissions contained in the other posts.
Having said that, the umask is set in /etc/profile. That umask can then be overridden by setting it again in the user's .profile. Finally, you can override that at the command line using the umask command (though it will only be changed for that process).
For CDE logins, /etc/profile are NOT read by default. There are instructions in the comments of both files for making them CDE safe. After making the changes contained in the comments, you can read them during a CDE login.
To read .profile during a CDE login, include the line DTSOURCEPROFILE=true in the user's .dtprofile.
To read /etc/profile during a CDE login, make a link to /etc/profile in /etc/dt/config/Xsession.d.
Sourcing .profile and /etc/profile during CDE logins can be desirable so that users have the same environment regardless of how they login.
It is a MUCH better idea to create the file and use chmod rather than mess with the umask.
--Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 08:12 AM
06-14-2001 08:12 AM
Re: How to set umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 01:39 PM
06-14-2001 01:39 PM
Re: How to set umask
Fija por favor su pregunta en espa?ol o portugu?s pues estamos teniendo problemas en intentar entender lo que usted tring para alcanzar.
Si usted va:- http://babelfish.altavista.com/translate.dyn all? es un servicio de traducci?n.
Paula
Abel
Afixam por favor sua pergunta em espanhol ou os portugu?ses porque n?s estamos tendo problemas em tentar compreender o que voc? tring para conseguir.
Se voc? for:- http://babelfish.altavista.com/translate.dyn l? ? um servi?o de tradu??o.
Paula
Abel
Please post your question in spanish or portuguese as we are having problems in trying to understand what you are tring to achieve.
If you go to :- http://babelfish.altavista.com/translate.dyn there is a translation service.
Paula