LinuxQuestions.org
Help answer threads with 0 replies.
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 11-20-2009, 08:53 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
How to create a Directory with permission of drwxrwxrwt


I just know one can create derectory with permission of drwxrwxrwx. I see somewhere a directory with permission of 'drwxrwxrwt'.

What does 't' mean and how to create it?
 
Old 11-20-2009, 09:04 AM   #2
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
I find the solution:

chmod +t mydir
 
Old 11-20-2009, 11:48 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
The t is the sticky bit. Makes executables stick in memory longer. Don't know if it has much use for folders, though,
as folder execute permission is more about the right to search in the folder, or to access sub-folders.
See
Code:
man 1 chmod
for details (in the middle number one, not lowercase letter ell)
 
1 members found this post helpful.
Old 11-20-2009, 01:13 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
/
Quote:
How to create a Directory with permission of drwxrwxrwt
HOW to create?
Do this:

user@host--$: mkdir ./myfolder [this is safer than the faster switching umask]
user@host--$: chmod 777 -R ./myfolder
user@host--$: chmod o+t -R ./myfolder
user@host--$: ls -l myfolder
drwxrwxrwt 2 user group 4096 2009-11-21 17:01 myfolder

Hope it works in your system.

Good luck.
 
1 members found this post helpful.
  


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
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 12:26 PM
samba and file create permission noir911 Linux - Server 1 04-02-2009 09:17 AM
Why am I denied permission when I try to create a directory? toastyjsd Linux - Newbie 2 02-28-2009 07:49 PM
how create a folder/permission rusmi Linux - Newbie 7 02-11-2005 11:04 AM
permission denied if I want to create new folder dodo1983 Linux - Newbie 2 08-14-2004 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 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