UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 25th, 2008, 12:56 AM
shantanuo shantanuo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: Mumbai, India
Posts: 239 shantanuo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 13 h 30 m 50 sec
Reputation Power: 9
Wink Changing permissions

When I type...
chmod 777 test.txt
The permission changes to...
-rwxrwxrwx

What if I want it to look like this...
-rw-rw----

Reply With Quote
  #2  
Old March 25th, 2008, 05:37 AM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2003
Posts: 1,198 MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 4 Days 20 h 35 m 35 sec
Reputation Power: 309
will suggest you read on how chmod work

in you example, it would be
chmod ug=rw test.txt
or
chmod 660 test.txt

Reply With Quote
  #3  
Old March 27th, 2008, 03:53 PM
fubes2000's Avatar
fubes2000 fubes2000 is offline
manwich
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canadanistan
Posts: 292 fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)fubes2000 User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 79002 Folding Title: Intermediate FolderFolding Points: 79002 Folding Title: Intermediate FolderFolding Points: 79002 Folding Title: Intermediate FolderFolding Points: 79002 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 9 h 48 m 35 sec
Reputation Power: 158
Send a message via AIM to fubes2000
it's basically binary...

Code:
000 = 0
001 = 1
010 = 2
100 = 4

rwx rwx rwx
111 111 111 -> 7 7 7

--- --- ---
000 000 000 - 0 0 0

rwx rw- r--
111 110 100 -> 7 6 4

and so on.
__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Changing permissions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway