LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-18-2003, 01:41 PM   #16
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30

To see the permissions on the files in a directory type the following:

# ls -l

Then you will get an output similar to:

-rwxrwxr-x 1 Gauge LANparty 3330747 Mar 9 2002 SetupCloneCD4202.exe

There are three permission groups and three permissions for each group. The permissions are:

r = read
w = write
x = execute

Full permissions are:

-rwxrwxrwx

The first "group" of rwx is for the owner, which on the example I showed you is me, Gauge. The second group of rwx is the permissions for the group the file belongs to, in this case LANparty. The third rwx is for "Others", which includes anyone not in the first two rwx's. If the r, w, or x is present, the permission is granted. If there is a - in its place, it is not granted.

when you chmod a file, you set the permissions. you give it three numbers from 0-7. Each number sets the permissions for a group. The permissions are set using binary code for the numbers given... thus

0 = 000 = ---
1 = 001 = --x
2 = 010 = -w-
3 = 011 = -wx
4 = 100 = r--
5 = 101 = r-x
6 = 110 = rw-
7 = 111 = rwx

So, if you wanted to give everyone full permissions to a file, you would use the following command:

# chmod 777 file_name

Sorry if I didn't explain it well enough. Tell me if there's any confusion and I'll try again.
 
Old 04-18-2003, 01:45 PM   #17
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Thank you very much :-) I shall try that and tell you how I get along. If the directories, and all of the files within a directory, have their permission restricted, is there a quick way to change that for all of them?
 
Old 04-18-2003, 02:30 PM   #18
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
I changed the permissions for the directories in Nautilus and it worked :-) Thank you.
 
Old 04-18-2003, 11:51 PM   #19
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
The easy way to change the permissions for all the contents and subdirectories of a directory is to add the -R option to the chmod command like so:

chmod -R 777 directory_name


So, your problem with Samba is solved? No more issues with permissions?
 
Old 04-19-2003, 03:51 AM   #20
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Yes, for now ;-) Thank you all for your help.
 
  


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
Samba: Can see share but not access? Permissions issue? lsgko Linux - Software 2 09-05-2005 11:44 AM
Another samba permissions issue... but at least I searched! gauge73 Linux - Networking 11 08-05-2005 07:32 PM
Permissions on SAMBA shares Joelbarnard Linux - Newbie 2 05-25-2004 03:47 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
Mandrake issue - Can't find ability to add samba shares Korff Linux - Distributions 1 06-28-2003 11:54 AM


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