Koozali.org: home of the SME Server

SMB /opt/ shares

SMB /opt/ shares
« on: September 09, 2008, 10:22:42 PM »
I am trying to "skin" roundcube and phpmyadmin. both are located in the /opt/ directory but when I go to add the new "skin" the file permissions are incorrect, therefore I get errors when I try to apply the new skin. I would like to be able to extract the .rar files directly to their prospective folders in hopes that the file permissions will be correctly retained without having to chmod all the files individually.

Ive attempted to use the ftp feature with smartftp but it wont connect with any account and I have the ftp wide open. I've tried the logins of "root" "admin" and "electronjunkie" with the correct passwords corresponding with each account. I don't believe the I would gain access to the /opt/ directory with my "electronjunkie" account anyways but it was worth a shot at least to try to connect.

I believe I could upload the "skins" and leave them in their .rar format and extract them on the server via ssh but I am not too familiar with Linux and .rar files. So I thought setting up a share would be the way to go.

If anyone can point me to the correct documentation pages or post an answer or alternative here I would greatly appreciate it. Thank you.

 

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: SMB /opt/ shares
« Reply #1 on: September 10, 2008, 05:48:11 AM »
Here are 3 possible options:

1. WinSCP
WinSCP (from http://winscp.net/eng/index.php) allows you to easily drag and drop files from any windows system to any other system that supports ssh logins (including SME).

2. chown -R
It is possible to change file permissions en masse using chown.  The following command would change the ownership on all files below /opt/roundcube to user=www, group=shared:
Code: [Select]
chown -R www:shared /opt/roundcube/*
3. ibay + mv
It would be much easier (IMHO) to extract your .rar files into an i-bay, then use an ssh session to move the extracted files where you want them (mv /home/e-smith/files/ibays/my-ibay/files/myrarfiles /opt/roundcube/some-theme-path]) than it would to template smb.conf in order to make /opt a network share.  Not to mention that one of the main reasons for putting web apps into /opt (when this first came up a while ago) was that it was supposed to be more secure than putting web apps into ibays where local users might have SMB access... (or something like that).
« Last Edit: September 10, 2008, 05:52:41 AM by mmccarn »

Re: SMB /opt/ shares
« Reply #2 on: September 10, 2008, 08:49:02 AM »
mmccarn,

You ROCK !!!! WinSCP its awesome !!!! I love it, Thank You very very much for this little nugget of joy !!!!!