I know its not directed at me specifically. Clearly you misread my post. WinScp DOES have an export command. However it does not export your command list alone.
That pertains to the community as well. You cannot export yours either, without all of your personal info piggybacking.
This sounds more like something you should be posting on the winscp forums... as feature request.
Otherwise, yes you will have to do it the same way everyone else has done it since the birth of telnet. Granted the commands have changed, and simplified.
The snippets I posted are as simple as it gets.
(if you are concerned about storing this somewhere where it will be easily accessible. Execute it once in putty, then whenever you need it again... just press the up key until you get to it, as by default putty stores all the commands you pass through it.)
Files in a .tar.gz always have permissions. When extracting the contents of a .tar.gz, I think it works like this:
If the current user is root, the permissions are preserved. If the current user is not root, the permissions are overridden by the umask setting. tar has options for modifying this behavior.
Of course, this only applies to Linux.
Will i was just trying to help some other people out down the road. These post are not directed specifically at you man. This is a community post!
My idea was about an export fuction for winscp that everyone could share their generic customs commands. In which the file could be modded for other users to use. I in no way was asking you for private information... lol
The easy way I guess would be for "everyone" to just paste your generic commands for putty and winscp.
man...
Anyway back on topic... Can a .tar.gz or any other file released be set to have no permission or ownership assigned to it? Is this possible?
Citaat:
So what im asking you to do is export your commands from a winscp and send them to me... lol
I will try those later tonight. When I am testing a new install of impress.
Can you answer my question? Can you export the custom commands from winscp? I can not seem to find a way to do it.
Sure I can copy and paste them. But like I said I don't have alot that really work the right way. The correct zip and unzip commands would be an awesome start.
ok, so you have your owner/group fixed. Let's move on to your permission issues.
I don't use winscp for shall commands, I use shell.
Do this in shell.
cd /path/to/dir
chmod -R 755 *
find -type f -print0|xargs -0 chmod 644
problem solved, take you 2 minutes even on 26k.
Edit this is what I meant to quote for my answer.
Citaat:
MrTheme wrote:
It definitely needs to be owner/nobody.
Will let me ask you a question. Do you think winscp has an export feature for custom commands? That way we could all figure out what works and offer a download of the commands. This way you could load up your winscp fast.
So what im asking you to do is export your commands from a winscp and send them to me... lol
Citaat:
MrTheme wrote:
This may even be easier.
cd /path/to/dir
chmod -R 755 *
find -type f -print0|xargs -0 chmod 644
This will change everything to 755, then you do a search for non-folders and chmod them to 644.
It definitely needs to be owner/nobody.
This may even be easier.
cd /path/to/dir
chmod -R 755 *
find -type f -print0|xargs -0 chmod 644
This will change everything to 755, then you do a search for non-folders and chmod them to 644.
It definitely needs to be owner/nobody.
Citaat:
MrTheme wrote:
If you are using winscp to execute the untar. Which I am sure you are. You can create a custom command to set all folder permissions and file permission.
Check the winscp doxs for setting up a custom command.
If you are using winscp to execute the untar. Which I am sure you are. You can create a custom command to set all folder permissions and file permission.
Check the winscp docs for setting up a custom command.
Likewise... shell is easy too.
I got a new server the other day. And as a result have had a bit of a learning curve. The server is setup with cpanel/whm, apache 2, php 5.2.5, mysql 5.0.45 community & runs in suphp mode out of the box.
I transfered some of my sites off of Wills server using whm. Anyway in saying that I had some interesting problems that I have never had to consider for my sites. Just the learning curve of trying to get all the owners and groups chown the right way to run with suphp. Then the chmod permission on all the files and folders half to be set to folders 755 & files 644.
I did get them all sorted but it was a pain. Now I been trying to work out a way to build my site in a much more efficient manner. You see I move about two moths ago out into what I call "BFE" Bum guess Egypt. My internet connection is crap 26k to be exact.
So instead of building site after site and uploading this and that. That I was going to build one mega site and clone from that one to any others I might build. This in its self is a major time saver.
Anyway back to the topic. In testing this approach I uploaded xoops.tar.gz because I didn't have a impress.tar.gz I only had the .zip Now I thought in my mind I want to keep this server as pristine as possible. Thats why I went for the tar.gz because it supposed to be native.
Well to my amazement the permissions are all set to 777 for files and folders. This was not something that I caught onto in the first 5 minutes either. It took me a few days to understand why in the heck xoops was in error on this brand new server.
In a nutshell the .zip version has no permissions set to the files and folders. So when you upload the .zip version what ever permission and ownership the server has the files and folders from a .zip will inherited those features.
The tar.gz is total mess trying to get up a running in a secure environment. So im not sure if this might help in the docs section or not. Or if the problem can be addressed in the released versions for a native impress install for linux/unix/bsd.
Any ideas on how I can install impress using a .tar.gz with out so much work would be awesome.