LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2009, 07:25 PM   #1
noob_J
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Directory Permissions


Hello All,

I am setting up a home server with Ubuntu Server 9. I am new to Linux and am using this box as a learning tool. I have noticed when I pscp files to my home directory the permissions do not include the executable attribute by default. I believe this can be done by using a "sticky bit". Can someone tell me how to do this?
 
Old 09-05-2009, 07:49 PM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
The permissions set when you create a new file in Linux are defined
by the "umask" filter, you can read about it in:

http://www.cyberciti.biz/tips/unders...lue-usage.html

IRC, there is no way to automatically set the execute bit by default
in new files.

At the time of copy, if you use for example rsync, it will preserve the
execute bits of your files with the -p parameter.

Best regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 09:33 AM
HELP - Directory Permissions desmondlewissmith Linux - Newbie 5 11-19-2007 05:18 PM
directory permissions allelopath Linux - General 3 01-01-2006 03:43 PM
New directory permissions Paulsuk Linux - General 3 05-18-2005 07:36 AM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM


All times are GMT -5. The time now is 09:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration