Koozali.org: home of the SME Server

Big problem with user folders

uomonet

Big problem with user folders
« on: May 22, 2006, 12:50:03 AM »
Hi all!
I hope you can help me to with this:
Starting from an existing peer-to-peer network (various XP machines with a user defined "server" wich only was a XP Box sharing user folders to others) I decided to put a SME server as PDC server/gateway, so i made users in sme box and then a have taken documents folders from the xp machines and I have put them into the server in each user folder. The problem is: when a log into the xp box as "x" user, I see my documents but I can't access them. I look at windows user/permissions and I see that the owner of those documents is "root/MYWORKGROUP". I try but I can't change permissions since I am user "x" and no "root".
can anibody help me?

Offline kruhm

  • *
  • 680
  • +0/-0
Big problem with user folders
« Reply #1 on: May 22, 2006, 05:18:43 AM »
you pretty much answered your own question. it's a permissions problem. Login as admin and try changing the permissions of the file.

you need to do this on the server, not on the client

this probably happened b/c of the way you transferred the files over.

uomonet

Big problem with user folders
« Reply #2 on: May 22, 2006, 10:39:07 AM »
Quote
you need to do this on the server, not on the client
That's the problem!!! I have no ideas about changing permission on the server... Nothing  on the SME manual... Maybe I'd rather have to learn about samba but I don't think it's so easy! Any helps?
I was thinking... If I change the server level deactivating the domain control funtion, as the server only a group member, do you think it can work?

Bierken

Big problem with user folders
« Reply #3 on: May 22, 2006, 11:18:35 AM »
Quote from: "uomonet"
Quote
you need to do this on the server, not on the client
That's the problem!!! I have no ideas about changing permission on the server... Nothing  on the SME manual... Maybe I'd rather have to learn about samba but I don't think it's so easy! Any helps?
I was thinking... If I change the server level deactivating the domain control funtion, as the server only a group member, do you think it can work?

I think kruhm is talking about :
chown
chmod
You should apply this in console mode.
eg:
You have files from a user (user01) belonging to a group (group01)
This you should do in console mode
chown user01:group01 /home/e-smith/files/users/user01/* -R
chmod 755  /home/e-smith/files/users/user01/* -R
7 = write/read/execute
5 = read/execute
so you get 7 for the user himself, 5 for the group and 5 for others If I remember well. Please check the man pages ( man chmod )  in console mode.

uomonet

Big problem with user folders
« Reply #4 on: May 22, 2006, 04:00:20 PM »
Quote
chown user01:group01 /home/e-smith/files/users/user01/* -R
chmod 755 /home/e-smith/files/users/user01/* -R

FANTASTIC!! IT WORKS!

Bierken

Big problem with user folders
« Reply #5 on: May 22, 2006, 08:31:55 PM »
Quote from: "uomonet"
Quote
chown user01:group01 /home/e-smith/files/users/user01/* -R
chmod 755 /home/e-smith/files/users/user01/* -R

FANTASTIC!! IT WORKS!

Don't forget to check the man pages for CHMOD because my feeling tells me 755 is not restrictive enought !!!!
chmod 755 /home/e-smith/files/users/user01/* -R