FTP Server chroot
May be it is easy. In 10.6.8 Server there was a possibility such capability:
When customer logging in to server with his user name and password (customer was created on Server) he is getting root as /Users/<CustomerLogin>.
Today I tried to find it, But I see that I can set up only special shares but not simple users directory chroot.
Can anybody help me with making simple FTP login to server with chrooting to users home directory?
I ended up just setting the share of the site to a user purely associated/setup for the use of the site. But I am still curious how to setup the SSH chroot jail for "user" group, while allowing the "admin" group full reign on the server. Also still curious on how to configure SFTP to work identical to how FTP is currently functioning.
Similar Messages
-
How to set Lion built-in FTP Server auto run off
Hello all.
I set FTP Server by using Rumpus Server application.
But Lion's built-in FTP Server is running on the front.
So if I try to connect my FTP Server out of my LAN, I can only connect to the built-in FTP Server despite I wanted to connect Rumpus FTP Server.
It can be solved by unload the built-in FTP Server(using sudo -s launchctl unload...) but every after rebooting I should set it because it is set to run automatically in every booting.
How can I set the auto run off?well, the ftp server (=ftpd) takes account info from the user list for your mac. so, go to the system settings on your mac, then to users, and then just add another user with a password of your choice (tap on the little plus-sign to add a user!). this will then be a valid user for your ftp server after you restart your ftp server.
the other thing you want to do, about the home directory, is called chroot. you can set the home directory of a specific ftp-user to be another directory then the standard. for this, there are configuration directives in the configuration file in /private/etc/ftpd.conf which you have to edit by hand. so make sure what you do there.
you should read this before editing the file, this will give you a better understanding of what to put there: https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/ man8/tnftpd.8.html -
Built in ftp server, I want to use it, but do not think I can
I enabled the ftp server, I want to use it, I am not sure it is up to the task.
With it on, users can ftp in just fine, I set the ftp settings to log ftp users into their home directory. I plan on having 1000's of ftp users, and they do not all need to get home directories.
I created a sharing only account, and changed their home path to /Library/WebServer/Documents/them
I also changed their shell to /sbin/nologin
This did not work, they were not allowed to login, nothing at all in the logs either.
So I move to a standard user, and then they can login, as long as I do not change the shell they use. I do not want them to have ssh access.
I ended up just hand configuring the ftp server, which means I am not going to be able to use Server Admin, or it will mess up my settings. I really do not want to create system users for ftp accounts anyway. Ideally, I could create ftp users with TLS, but I do not see that as an option, and OS X does not seem to be simple to set up ssh chroot, so that is not an option either.
Suggestions on a shared hosting machine?Apple's implementation of lukemftp isn't very robust for hosting needs. They have spent little effort on crafting the GUI to support multiple accounts (via WGM) pointing to the same domain space, or paths within a sandbox (say you want to craft a second account to point to a subdirectory of a site --not with Apple's exceptionally primitive GUI in this regard). Apple also hasn't spent any effort to update their website for OS components: http://www.apple.com/opensource/, so this isn't really on their radar. Many hosting companies have begged Apple to address these issues ... going back many years. The results of their attentiveness is the product you now have.
You should take a few minutes to post your wishes, and your disappointments, via the feedback tool within the Server Admin menu.
Then follow Alex's suggestion to consider pureftpd. -
Hi All,
I have a requirement where I need to delete a file from the FTP server. How do I do that?
Thanks in Advance.
Regards
JaspreetHi,
refer this link,
[ABAP solution to implement FTP transactions |http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions]
Regards,
Vijay -
How can i do scheduled automatic backups to an ftp server in ios xr?
Hello guys! As the title says im looking forward to automatically back up my running config on a cisco CRS-1 to an FTP server. I was only able to find this config example:
Configuration commit auto-save filename ftp://A.B.C.D/myconfig.txt
This allows me to save my config to an ftp server everytime i use commit on the device. Now i want to know if there's a way to automatically save my configs everyday at 00:00 and also include the date and time in the name of the file so i don't overwrite the existing files in the ftp server.
I dont want to use any tool i just wanna know if what im asking is possible via CLI commands. I would greatly appreciate your help with this subject.
Regards,
DavidNot sure if this script will work on a CRS, but try this:
archive
log config
logging enable
hidekeys
path tftp:///$h-
write-memory
time-period 10080
Explaination:
There are two ways to save your config to your remote station:
1. When someone saves the config; and
2. At an alloted time period, expressed in 10080 (weekly for me). -
Error when scheduling WEBI report to FTP server
Hi
We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
Any help would be appreciated
Regards,
AnisaHi All,
I want a run my report once by scheduling, so i provide a time interval for scheduling a report
start date/ time : 11:38:AM 10/30/2011
end date/time : 11:43:AM 10/30/2011
after completion of end time....report is failed and fetching an error
Error : Object could not be scheduled within the specified time Interval
Any solution for resolving this error -
Java ftp server which can use LDAP, how to integrate with WLS' implementation of LDAP?
Howdy.
I'm setting up a java ftp server
(http://www.mycgiserver.com/~ranab/ftp/index.html) which is capable of using
LDAP for it's user security. I would like to integrate this ftp server with
wls' implementation of LDAP so I only have to admin one user list.
Does wls put it's user list in the LDAP or in it's own proprietary setup? I
tried playing around with it, but the users don't seem to appear in the JNDI
tree. Is this where the LDAP stuff is located? I thought it was in there?
If it's in it's own setup, is there a way to propagate the users to LDAP?
If these look like newbie Q&A, I guess they kind of are, I'm new to LDAP.
Thanks for any input you might have.Peter,
If you are talking about using the embedded LDAP server in WLS 7.0 for this purpose
I think you are going done the wrong path.
Look at the following URL on how to use an external LDAP server for your custom
application
http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
Chuck Nelson
DRE
BEA Technical Support -
Output to an ftp server via Destinations or Applescript
In Compressor, you can set the Destination of a compression batch to be a remote server, such as an ftp server.
When you start a batch, if the destination is not available or reachable then the documentation (p.230) says: "When there is a problem with your destination, a yellow warning triangle appears. You must resolve this problem before you can successfully transcode."
Although I have not tried it, it implies that if your remote ftp server is not accessible when you drop a file on a created droplet with the Destination set to an ftp server, it won't be able to begin encoding until the destination is available: "As soon as you resolve the problem, the warning triangle disappears and you can continue to transcode." (p.230)
For a lot of people, this is OK.
Some people need to compress and then tranfer the output to a distant location, and they may not have continuous, reliable access to the remote location. They may need to make a temporary connection via modem dial-up, satellite phone or third-world Internet connections. Think news reporters in remote locations.
So, for those people, the option of Applescript should allow them to have their output files saved to a local destination, and then staged up to the ftp server using the built-in commands. But, the problem is that a small file is created at the Destination when the compression is started, and Compressor is not Applescript aware (apart from being able to call an Applescript). This means that any Applescript called as a post processing activity knows nothing about the files Compressor just processed and outputted. It has to glean information about them from the Destination folder where the output files are placed, and then sort out the completed output files from the ones that have just been started, then ftp the completed files up to an ftp server and delete sent files from the Destination folder.
What I would like to see is either
1) a Staged Destination where files are created on the first Destination then staged to a secondary Destination, with an option of keeping these files on the first destination, and/or
2) Applescript support in Compressor which will allow information about the files that have just been compressed to be passed to another Applescript aware application or script.
I would be happy even with some sample Applescript to do the transfer or files from Destination to an ftp server that avoids copying files that haven't been fully processed.
Has anyone else run into these issues?
Bill LeeOh, trust me, I do know about Apple and the fact this discussion site is not an official contact point for Apple. I'll be escalating this Request for Enhancement through my contacts at Apple.
There is a reason I have not posted before in this forum (and relates to the above).
There seems to be few people who are using the Applescript post-processing feature, and I was trying to gauge any support for enhancements in this area (and maybe stir up some villagers with pitchforks and burning torches).
Apple will listen to normal users input, but it needs to have a business case that justifies any resources devoted to this. The more people affected, and the greater the impact on your business, and the size/importance of your business has an effect on whether you will get what you want, and when.
Sorry if I was not clear on what I wanted: information as whether this was important for other (non-Apple) people, and whether people had scripts that solved the problem of staging output files to an ftp server that was not consistently connected during the compression process.
Thanks for your reply,
Bill Lee -
No Data in PDF file in FTP server
Hi All,
I am trying to place a PDF file in FTP server.
Used
CONVERT_OTFSPOOLJOB_2_PDF to convert spool to PDF
SCMS_TEXT_TO_XSTRING
FTP_R3_TO_SERVER to transfer data to FTP.
I am able to see PDF file in FTP and no of pages matches with that of R/3 but there is no data in PDF file.To get pdf file , you need to set the itcpo-tdgetotf = 'X' and need to pass in the exporting parameter (options in open_form function module ).Then in close_form function module take all the data of otfdata table into an internal table . Then use SX_OBJECT_CONVERT_OTF_PDF function module to convert it to pdf.
I will show with an example.
tables itcpo.
DATA: ch_otf TYPE STANDARD TABLE OF itcoo.
DATA: w_otf TYPE itcoo.
DATA: w_pdf TYPE solisti1. "For PDF
DATA: i_content_txt TYPE soli_tab.
DATA: temp1 TYPE sx_format VALUE 'OTF',
temp2 TYPE sx_format VALUE 'PDF'.
DATA: c_printer TYPE sx_devtype VALUE 'PRINTER'.
DATA: w_transfer_bin TYPE sx_boolean. "Content
DATA: i_content_bin TYPE solix_tab, "Content
wa_content_bin TYPE solix,
i_objhead TYPE soli_tab.
itcpo-tdnoprint = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tdgetotf = 'X'.
These three parameters need to be passed along with other required parameters
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = sender
mail_recipient = recipient
EXCEPTIONS canceled = 01.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = RESULT
tables
otfdata = ch_otf.
LOOP AT ch_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
converting otf file to pdf file
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = temp1 "'OTF'
format_dst = temp2 "'PDF'
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
Then open dataset and transfer to ftp of the content of table content_bin(i_content_bin) as shown in above example.
I think this will be helpful for you -
How to read the file from ftp server
Hi
I need to read a file from a ftp server . Iam using apache lib common-net .jar .
FTPClient ftp = new FTPClient();
ftp.connect(server);
ftp.login(username,password);
FTPFile[] files = ftp.listFiles();
for(int i=0 ;i<files.length;i++){
System.out.println(" File : "+ i + " - " + files);
InputStream ip = ftp.retrieveFileStream(path);
I got the inputstream from the ftp server. but iam not able to read the contents of the file ....
help me plzzzzzHi
I have one more problem . first i try to read the file and write the file in local directory . then i try to read the data in the remote file .. iam getting the datas as null.
InputStream ip = ftp.retrieveFileStream(path);
File f = new File("D:\\ftp.txt");
FileOutputStream fo = new FileOutputStream(f);
byte[] buf = new byte[1024];
while ((len = ip.read(buf)) > 0) {
fo.write(buf,0,len);
fo.close();
BufferedReader br = new BufferedReader(new InputStreamReader(ip));
String line;
do {
line = br.readLine();
System.out.println(" data " +line);
}while (line != null); -
Problem while reading the file from FTP server
Hi Friends,
I have a problem while fetching files from FTP server.
I used FTP_Connect, FTP_COMMAND function modules. I can able to put the files into FTP server.
but I cant able to pick the files from FTP server.
anyone have faced similar issues kindly let me know.
Thanks
GowrishankarHi,
try this way..
for reading the file using FTP you need to use different unix command ..
Prabhuda -
How to read .xls file from FTP server t oInternal table
Hi
am using the FTP_SERVER_TO_R3 to read xls file from FTP server to internal table
but the data i get in LT_TEXT is special characters.
CALL FUNCTION 'FTP_SERVER_TO_R3'
EXPORTING
handle = hdl
fname = f_name "ProdDataFromCRM.xls.
* CHARACTER_MODE = 'X'
* IMPORTING
* BLOB_LENGTH =
TABLES
BLOB = lt_text
* TEXT = lt_text
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4
can any one help me out to get the exact data..
Really appreciate your quick response..
Thank YouHi, if you really retrieve an excel file, you can not see the data in ABAP. You may see them in Excel. For this you may use
CALL METHOD document->open_document_from_table
of the interface i_oi_document_proxy for OLE objects. You can access the data with reference to the interface i_oi_spreadsheet.
Please check [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf] for details.
But, who knows, perhaps you want "And Now For Something Completely Different".
Regards
Clemens -
Need to copy .txt file from FTP server and downloaded on local server directory.
I need to figure out a way to copy .txt file from ftp server in local server directory using sql jobs.
Below links will help achieving it:
https://www.virtualobjectives.com.au/sqlserver/ftp_scripts.htm
http://www.mssqltips.com/sqlservertip/2884/sql-server-integration-services-ssis-ftp-task-for-data-exchange/ -
How to read XL file from FTP server
Hi all,
I have a requirement like to read file from FTP server using path
ftp:
10.212......\DTR\DTR_ Accounted_Out
and again save other file in same location ,
to doing this RFC connection is required?
give a procedure or program to do this requirement ..
To create rfc for FTP which connection type can i use ?
Give complete settings to create rfc destinationHi Rakhi,
Use the below code to check if you have received the proper data.
call function 'FTP_SERVER_TO_R3' "Get data as character instead of BLOB
exporting
handle = hdl
fname = docid
character_mode = 'X'
tables
text = chardata.
If the data is incorrect, it is possible that you are in the wrong directory.
Use
call function 'FTP_COMMAND'
exporting
handle = hdl
command = 'cd mydir\mysubdir' "cd <space> your path
tables
data = result
exceptions
tcpip_error = 1
command_error = 2
data_error = 3.
Regards,
Jovito. -
Problem with downloading file from FTP server
Hello all
I have uploaded a file from an application i developed and i want to download this file from another application. The code is
public static void FTPcon() throws FtpException{
String hostname = "my.ftp.server";
String username = "myusername";
String password = "mypass";
Ftp ftp = new Ftp(hostname,username,password);
ftp.setHostname(hostname);
ftp.setUsername(username);
ftp.setPassword(password);
ftp.connect();
ftp.setBinary();
ftp.download("file.dat");
ftp.disconnect();
}The error i receive is java.io.FileNotFoundException: public.dat (The system cannot find the file specified) but the file is on the server.
Thanks in advance for any helpCotton thank you for your reply
Any other sugestions please?The server disagrees. So...
- the file does not existThe file exists.I checked it with an FTP client program.
- the file has a different nameThe file name is correct
- you are connected to the wrong serverI am connecting to the correct server
- you are in the wrong ftp directoryThe file is placed in the home directory
- the ftp library you are using is broken (less
likely)I am using the library from jscape.I dont think is broken because i can upload the file from the first application.
>
FTP isn't somehow broken in Java. I use it all the
time. The problem is something listed above. I would
check all of the first four if I were you because
that's most likely where the problem is.Message was edited by:
flightcaptain
Maybe you are looking for
-
Hi everyone, This is my first post, so please be gentle. : ) I don't have a mac yet, but after years of unreliable PC's (not to mention Premiere crashing all the time) I am looking at buying one for editing. I can't realistically afford a macpro towe
-
I have most of my music, but I just purchased 2 albums of Rascal Flats and they are gone...how do I or can I download them again without paying again???
-
Change BI 7 WAD exception symbol
Dear All, I have a question regarding exception symbol in BI 7 WAD. we can change the exception from color to image(symbol). the question is can we change the symbol? the default is just an arrow up, down and across. I want to change with something e
-
Can we have the Curser Focus change automatically?
I have an iMac. The software I use are common software like Page, for a word processor, and Numbers, for a spread sheet. In Numbers, when I hover over a cell, the cursor changes to allow me to select the cell. When I hover over a text box the cursor
-
LCD Advice / Sharp Aquos "Banding"
Trying to decided b/w: Toshiba Regza 46XV645U and Sharp Aquos LC46D85U. I've heard about color "banding" issues on the Sharp. Has this been corrected, or is it still an issue. What's the 411 on Toshiba? Any known issues? I haven't read too many