LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-29-2010, 01:08 PM   #1
lamou23
Member
 
Registered: Jun 2010
Posts: 54

Rep: Reputation: 15
to code a directory


hello,

how can i code a directory in ubununtu

thanks
 
Old 06-29-2010, 01:20 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what does that mean? do you mean to create a directory?? If so use the mkdir command
 
Old 06-29-2010, 01:21 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You mean Ubuntu....right?

What do you mean by "code a directory"? Please describe the context of this question.

Are your questions related to a class you are taking?
 
Old 06-29-2010, 01:24 PM   #4
lamou23
Member
 
Registered: Jun 2010
Posts: 54

Original Poster
Rep: Reputation: 15
to code a directory

no

i have a directory in /home/linux which is "programs"
I want to code this directory using password to access in his contains
 
Old 06-29-2010, 01:28 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Are you sure that you need a password?

How about restricting access to a specific user or group?

If you really need a password, here's what Google found:
http://www.google.com/search?q=passw...ient=firefox-a
 
Old 06-29-2010, 02:45 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Perhaps the OP wants to encrypt the directory to prevent unauthorised access and use the password to unlock it...
 
Old 06-29-2010, 03:06 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by Dutch Master View Post
Perhaps the OP wants to encrypt the directory to prevent unauthorised access and use the password to unlock it...
He clearly said he wanted to code it. What more info could you possibly need?? ;-)
 
Old 06-29-2010, 03:21 PM   #8
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes, he did say that. But was it really what he meant? Be aware that LQ is frequented by many for whom English is not their native langauge... And translators, especially the online ones, aren't very accurate to translate the intention of someone's question.... And then there's the peculiarities of langauge itself: the word code has different meanings in different langauges and can even have multiple meanings in some langauges, depending on the context.
 
Old 06-29-2010, 10:55 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
If you think "code" in the context of encode and decode, then it implies that the OP does want to encrypt the directory. I normally use gpg for this type of thing, but afaik it will only work with files not directories. So perhaps:
Code:
tar czf programs.tar.gz /home/linux/programs
gpg --encrypt programs.tar.gz
Of course you'd have to set up gpg first, and it may not be what the OP wants since presumably "programs" has executables in it that the OP may want to run.

How about simply making the /home/linux/programs not readable by others? Eg.
Code:
chmod -R og-r /home/linux/programs
There are also probably gui tools that will do what the user wants... for example I seem to recall ubunbtu making a big song and dance some time ago about encrypted home directories.

Cheers,

Evo2.
 
  


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
source code for cd (change directory) Spyes Programming 14 02-10-2010 10:45 AM
c code to list the directory entries in a dos formatted floppy atikna2001 Programming 10 03-17-2009 09:21 AM
Reload this Page Where is the kernel module source code directory? Unregistered Slackware 1 10-13-2007 10:06 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
how to into a non-ascii-code directory ? jiawj Slackware 3 01-24-2005 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:20 PM.

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