- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Small daught
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
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
08-18-2005 11:09 PM
08-18-2005 11:09 PM
Small daught
Why directories has 777 and files are having 666 permission.
Regards
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:13 PM
08-18-2005 11:13 PM
Re: Small daught
Which directories and files permission are your talking about?
Give more details.
Regards,
RAjesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:15 PM
08-18-2005 11:15 PM
Re: Small daught
The files created have their permissions default set by the command umask. Check the man pages of umask for details.
Enjoy :)
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:15 PM
08-18-2005 11:15 PM
Re: Small daught
In general: -
777 on a directory means anyone can read, write and search the directory. (the execute bit on a directory means you can see the contents of the directory).
666 on a file means everyone can read and write the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:22 PM
08-18-2005 11:22 PM
Re: Small daught
I mean why directories will have rwxrwxrwx and why files will have rw-rw-rw in generel
Thanks
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:24 PM
08-18-2005 11:24 PM
Re: Small daught
The effective file permissions are depends on the umask setting.
Typically used umask is 022.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:29 PM
08-18-2005 11:29 PM
Re: Small daught
This recent disscussed link may help you for your doubts.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123778
Regards,
Rajesh
PS:Don't forget to give points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:33 PM
08-18-2005 11:33 PM
Re: Small daught
Why files will not be having 777 i.e rwxrwxrwx permissions?
Regards
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:34 PM
08-18-2005 11:34 PM
Re: Small daught
The x permision allow access to directory instead the rw on files permit to read an write that files, not execute it.
I Hope This Help You.
Juanma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:41 PM
08-18-2005 11:41 PM
Re: Small daught
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:42 PM
08-18-2005 11:42 PM
Re: Small daught
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:42 PM
08-18-2005 11:42 PM
Re: Small daught
I should also note that in general, unless absolutely neccessary you should avoid having files with full worlds writability (rw-rw-rw-). You should aim for rw-rw-r-- at least, depending on your application.
umask as others have mentioned is used to set the default permissions mask for new files. I would recommend you read the man page thoroughly to understand it. It can be a strange one to understand if you're new to it, but it is very important in maintaining a secure system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:43 PM
08-18-2005 11:43 PM
Re: Small daught
files can can 777 permissions as well but the behaviour is different.
try the following:
create a simple file containing the command "ls -l".
set permissions to 666.
chmod 666 yourfile
try ./yourfile (you will get an error)
chmod 777 yourfile
try again ./yourfile (the command ls -l is executed)