LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-28-2007, 01:03 PM   #1
bab258
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
Not 644 but 700 by default?


When creating a new file it's get 644 permissions rights by default. Where or how to make configuration for 700 rights become by default on all new files?
===
Sorry for bad english.
 
Old 08-28-2007, 01:17 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You can't and that's for good reasons too.
 
Old 08-28-2007, 01:29 PM   #3
bab258
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hmm. So must to use batch file in cron schedule. Any other ways? Thanks.
 
Old 08-28-2007, 01:36 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
The closest you can get to 700 with umask for files is 600, which you can get by using a umask of 066. You can't set execute permissions for files with umask (for directories you can). Why do you need all your files to be created with execute permissions?

Last edited by win32sux; 08-28-2007 at 01:40 PM.
 
Old 08-31-2007, 03:31 PM   #5
bab258
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
700 just for example, umask match perfectly. Thank's. I'll try it later.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod all files 644 and files 755 cope Linux - General 7 01-04-2014 10:52 PM
Will this command work? chmod -R 644 *.php abefroman Programming 3 10-22-2005 08:26 AM
chmod 644 /etc/shadow stomach Linux - General 15 09-12-2005 08:28 PM
Apache and php + chmod 644 daveo Linux - General 2 10-10-2003 08:33 AM
Post 700 Robert0380 General 6 08-13-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration