LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-05-2011, 03:34 PM   #1
gaurav2772727
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Rep: Reputation: 0
Permissions & chmod


how to get permission by chmod
 
Old 04-05-2011, 03:45 PM   #2
gaurav2772727
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Original Poster
Rep: Reputation: 0
i m a begineer in linux ...
 
Old 04-05-2011, 04:03 PM   #3
flipjarg
Member
 
Registered: May 2010
Distribution: Debian & Backtrack
Posts: 58

Rep: Reputation: 2
Quote:
Originally Posted by gaurav2772727 View Post
how to get permission by chmod
The following makes it readable and executable by everyone... and only writable by root.
Code:
chmod +rx+rx+rwx filename
 
1 members found this post helpful.
Old 04-05-2011, 10:48 PM   #4
gaurav2772727
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Original Poster
Rep: Reputation: 0
thanks a lot sir .. its work
 
Old 04-05-2011, 10:54 PM   #5
gaurav2772727
LQ Newbie
 
Registered: Apr 2011
Posts: 18

Original Poster
Rep: Reputation: 0
sir how i can connect terminal to internet
 
Old 04-06-2011, 06:15 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
gaurav2772727,

Welcome to LQ. I hope you like it here.

Your post & its replies have nothing to do w/ the original topic of this thread, so I am splitting them into a thread of their own. What you have done is called thread hijacking & is frowned on. In the future, please start a new thread -- in a relevant forum -- for a new topic. As the rules say:
Quote:
  • ... Try and pick the most relevant forum for your post. If you are unsure put it in Linux - General.
Thanks for your co-operation.


I am also moving the new thread to Linux - Newbie
Quote:
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!
as I think that is the most appropriate place for this question.


Again, welcome to LQ.

Last edited by archtoad6; 04-06-2011 at 06:36 AM. Reason: link back to orig. thread to clarify context
 
Old 04-06-2011, 06:33 AM   #7
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
you can also change permission with

Code:
chmod 755 filename
Quote:
755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, owner is allowed to write to the file as well. For more information see details on UNIX permissions and chmod command.
Quote:
Originally Posted by gaurav2772727 View Post
sir how i can connect terminal to internet
what do you mean by that?
through a terminal?
with a terminal??

what OS are you using
try:
Code:
uname -a
 
Old 04-06-2011, 07:00 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
3 questions:
  1. Have you read the man page for chmod? If not, please do & then ask questions about the parts of it you don't understand.


  2. Did you mean your OQ (original question), "how to get permission by chmod", literally? -- Everyone has been interpreting it as "How do I set permissions with chmod"
    If you're really asking about how to display existing permissions, then the answer is not chmod at all, but ls, specifically:
    Code:
    ls -l
    If that is the case, please read the man page for ls & then return here w/ your questions about the parts of it you don't understand.


  3. What does this question have to do w/ permissions?
    Quote:
    Originally Posted by gaurav2772727 View Post
    sir how i can connect terminal to internet
    Do I need have that post & its answers split into a separate thread also?
 
Old 04-06-2011, 01:35 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by flipjarg View Post
The following makes it readable and executable by everyone... and only writable by root.
Code:
chmod +rx+rx+rwx filename
Ummm ... that statement is wrong in two ways; you got the
permission order back to front; and you're not setting permissions,
you're adding them.
To achieve what you SAID rather than put in the command you'd
need (assuming root was the owner of the file) to do:
Code:
chmod u=rwx,go=rx file


Cheers,
Tink
 
  


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
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 02:10 PM
chmod ruined my permissions ebfan1992 Linux - Newbie 14 04-09-2009 07:46 PM
chmod help and permissions pcorajr Linux - Newbie 4 02-27-2006 03:43 AM
Trouble understanding chmod & group permissions gen-ik Linux - Newbie 3 07-19-2004 02:51 PM
Changing permissions (chmod) teyesahr Linux - Newbie 1 07-31-2003 05:52 PM


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