Koozali.org: home of the SME Server

Access to files

Tue Hellstern

Access to files
« on: May 11, 2002, 07:24:56 PM »
Hi,
I have a problem I don’t understand. In my i-bay I have some files I don’t can’t access. It is manly Word files, I can see the file but I can’t open it. If I save a new file to the i-bay are there no problems, but the old file I can’t open. I think it must be something about user rights, but I have to create a Admin user on the Windows pc, with the same password as the Admin account on the E-smith server, but it don’t help. There must be something I can do to get access to my files again.
Tue

Des Dougan

Re: Access to files
« Reply #1 on: May 11, 2002, 09:00:00 PM »
Tue,

When I've had this happen, it's been because I have copied files into the directory from the server command line. If you do that, they are owned by root. If this is the case with your problem, logon to your server as root, navigate to the i-bay and change the ownership and group to your login ID and "shared", respectively (e.g. chown -R tue:shared *).

Des Dougan

Tue Hellstern

Re: Access to files
« Reply #2 on: May 12, 2002, 11:44:44 PM »
Hi Des,
I have tried to use chown, but I can’t see it change anything?
If I use the command ls –l I get the flowing information about the file Journal.doc

-rw-r--r--    1 tue      shared     103208 Feb 17 13:30 Journal.doc

If I reed it right everyone should have the rights to open the file, is that right?  If it is right why can’t I do it??

Tue

Des Dougan

Re: Access to files
« Reply #3 on: May 13, 2002, 01:29:52 AM »
All the files in my ibays seem to have attributes as follows:

-rwxrw----    1 des      shared     171761 Jul 22  2000 thm_03_1024.jpg

What are the attributes of the files you can access?

Try chmod with a value of 760.


Des Dougan

Tue Hellstern

Re: Access to files
« Reply #4 on: May 13, 2002, 10:36:54 AM »
Hi Des,
The files I can access have the flowing rights;

-rwxrw-rw-    1 tue      tue         24064 May 13 01:22 test.doc

and the files I can’t access have this rights;

-rw-r--r--    1 tue      shared     103208 Feb 17 13:30 Journal.doc

How do I change the rights on all the other files to these rights?

/Tue

Des Dougan

Re: Access to files
« Reply #5 on: May 13, 2002, 10:47:33 AM »
Tue,

chmod 760 *

should do it.

Des Dougan

Tue Hellstern

Re: Access to files
« Reply #6 on: May 13, 2002, 02:55:58 PM »
Hi Des,
I triede chmod 760 * and it change the rights to the same as my test.doc, the file I can access. Now all files have this rights:

-rwxrw----    1 tue      shared     103208 Feb 17 13:30 Journal.doc
-rwxrw----    1 tue      tue         24064 May 13 01:22 test.doc

But I still can’t  access these files, the only different I can see is that on the files I can’t access it says “shared” and on the files I can access it says “tue”, could that be the problem?

/Tue

Des Dougan

Re: Access to files
« Reply #7 on: May 17, 2002, 08:15:25 AM »
Tue,

If you're logged into the network as user "tue", then you should be able to access the files successfully. If I remember correctly, you're using a W2K client?

It may be that the file ownerships from the Windows side have become messed up. I'd suggest that you log on to the PC as admin, check that you can access the files, and if so, go into the directory properties, select the Security tab, Advanced setting, Owner tab. Select your ID under "Change owner to", and check the "Replace owner..." box. Apply the changes, log on as yourself and see if that's fixed things....


Des Dougan