On Fri, 2006-06-23 at 22:38 +0100, Niall O Broin wrote:
> On 23 Jun 2006, at 22:22, Philip Creevy wrote:
>> > I have just setup a windows user with FC5
> > and have run into what seems like a strange
> > problem.
> > I copied all of his documents from windows
> > to a CD, I then copied the contents of the CD
> > to folder on his Linux desktop, I then changed
> > all permissions of the copied files with
> > "chmod -R u+w *".
> > When he tries to open any of the .doc files
> > nothing happens so I logged in as root with SSH.
> > I looked at the permissions and they are all
> > "-rw-r--r--" and owner and group is him.
> > I then logged in as him but when I tried to change
> > directory to where the files are I got permission
> > denied.
> > The folder on his desktop is called "backup15062006"
> > that I created as him on his desktop but it is the
> > folders under this folder I cannot access through
> > SSH.
> > He can drag the files to his desktop and then open
> > then.
>> It's some kind of permissions problem. Lacking further details as to
> what exactly
> the permissions are, you should be able to fix this by doing the
> following as root,
> assuming the user is called fred, his primary group is fred (default
> with FC5 I think)
> and his desktop folder is called Desktop in his home directory
> (adjust appropriately
> if not) :
>> cd ~fred/Desktop
> chown -R fred:fred backup15062006
> chmod -R 600 backup15062006
> find backup15062006 -type d -exec chmod 700 {} \;
>>> The last command I think may be at the heart of the matter - it adds
> execute permission
> to backup15062006 and all the directories under it, and without
> execute permission, you
> cannot search a directory.
>>> Niall
>>Thanks, that worked, it was the last line that did it.
Philip
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!