Koozali.org: home of the SME Server

Setting File Attributes after copying to new ibay

jdarrough

Setting File Attributes after copying to new ibay
« on: May 08, 2006, 12:50:21 AM »
I have an SME 6.0.1 server running as server-gateway. I used MC to move a group of files from one ibay to another however, I cannot do anything with them except look at the directory list. I am using Windows XP Pro and My Network Places to view the directory. What do I need to do to set ALL the files in the fileshare such that I can move them, delete, and/or execute? I want to upgrade to SME 7.0 rc2 but I need to move the files off the server and onto a DVD.

I did burn all the files to a DVD however, the permissions on them won't allow me to do anything more than view the directory on the DVD.

Sorry if this has been answered before, but I certainly could not find it.

Sincerely, Jim

Offline Curly

  • ****
  • 114
  • +0/-0
Setting File Attributes after copying to new ibay
« Reply #1 on: May 08, 2006, 02:48:46 PM »
You'll need the chmod command to change the permissions.
Perhaps you'll also need to change the owner, for that you use the command chown.

You can view the old permissions by using the command ls -l on the old directory.

Perhaps you should make another copy and copy the permissions and owner in one go:

cp -Rp <directory> <new-directory>
.......................................

jdarrough

Perfect
« Reply #2 on: May 08, 2006, 07:48:36 PM »
Chmod did the trick. Thank you very much for your help. What I did was log on as root, cd to the appropriate area, and do chmod 777 *

Regards, Jim Darrough

Offline Curly

  • ****
  • 114
  • +0/-0
Setting File Attributes after copying to new ibay
« Reply #3 on: May 08, 2006, 08:06:33 PM »
Just to make sure:

chmod 777 gives everyone all rights, so this might be an security issue. It's best to restrict the rights as much as possible.
.......................................