Click to See Complete Forum and Search --> : DUMB QUESTION :-) Well Maybe Not


jcannonb
12-31-2000, 06:45 PM
Anyway, this morning I posted about a problem I was having with datastore, a samba share I created.

Datastore is a share that my friends and I have access to. I created it as /home/.datastore and shared it as datastore in samba.

It seems sometimes when I go to access it or someone, it tells me access denied. After fussing with it several times, doing a chmod 755 on the .datastore folder itself fixes the problem.

WHAT DOES 755 mean, and why is it so important to samba? I am feeling like an idiot. I just converted totally from Win2k, and really want to understand.

mdwatts
12-31-2000, 07:13 PM
Did a search for 'chmod' and here you go http://www.catcode.com/teachmod/

There's hundreds more like that. Once should do.

Also try 'man chmod'. 'man' is your friend. Use all the time and you'll learn.

A_Lawn_GNOME
01-01-2001, 12:44 PM
1 - Execute (for directories, this means being able to 'cd')
2 - Write
3 - Execute and write
4 - Read
5 - Read and execute
6 - Read and write
7 - Everything

The numbers are put together as (owner) (group) (everyone else). So 755 has the owner with every permission, group members with read and exec/cd permissions, and everyone else as read/exec too.

There is another method to set single settings. The syntax is chmod (entity)(+/-)(permission). "Entity" could be u (owner), g (group), o (everyone else), and a (all). +/- activates or deactivates the permission. Permission can be r, w, and x. So to let everyone read a file, you type chmod a+r <filename> .