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 - 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, 02: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, 02: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, 03: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, 09: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, 09: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, 05: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: 234Reputation: 234Reputation: 234
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 05:36 AM. Reason: link back to orig. thread to clarify context
 
Old 04-06-2011, 05: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, 06: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: 234Reputation: 234Reputation: 234
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, 12:35 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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



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 01:10 PM
chmod ruined my permissions ebfan1992 Linux - Newbie 14 04-09-2009 06:46 PM
chmod help and permissions pcorajr Linux - Newbie 4 02-27-2006 02:43 AM
Trouble understanding chmod & group permissions gen-ik Linux - Newbie 3 07-19-2004 01:51 PM
Changing permissions (chmod) teyesahr Linux - Newbie 1 07-31-2003 04:52 PM

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

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