FTP Setup (using samba share on another server)

A hypothetical question.
First you need to know I would be setting up the ftp on a mounted drive (storage server share). The users are chrooted to their home directories in /ftp/users/username using the option in vsftpd.conf. Now, if I were to setup a user to have ftp access and shell access, is the following possible?
Their home folders are located in /ftp/users/username. Being that it is a mounted folder (I can't change individual directory and file permissions), is it possible to prevent each user from accessing anything in the whole ftp directory while logged into the computer with shell?
Last edited by gormine (2008-04-18 18:09:04)

The way you do what you are describing is to keep the Account information in the same place it is now, but change the pointer to a User's (or collection of Users) Home Folder.
To transition to that:
• decide where the User's new Home will be.
• create a new folder for that user at the new location.
• copy the user's files to the new location.
• change the home pointer in their account record.

Similar Messages

  • Needed to copy the share from one server to share in another server

    Hi ,
    Needed to copy the data from one share named as xyz in the server 1 to the another share abc in another server 2.
    Share xyz data should be copied to the share abc which has already different data in it .We need to copy all the data from the share xyz to the share abc  without deleting any existing data in the destination share.
    I know that /MIR option will replace the destination same as source
    Can anybody help us in the Robocopy command & switches for this activity?
    Any help is greatly appreciated!
    Thanks & Regards S.Swaminathan Live & let others live!!!

    Hi Mandy,
    Thanks for your reply.
    I have done many robocopy for the share movements from the one server joined in a domain to another server joined in the same domain.In that instances, the destination server will not be having any share of the old server name and just I robocopy the share
    from the old server to the new server after creating a new share .The usual command is as follows:
    "\\server1\oldshare" \\server2\newshare" *.* *.* *.* /ZB /E /COPY:DATO /XJ /R:0 /W:0 /TEE /dcopy:T /NP /log:c:\robocopy.txt
    And after the copy , during the cutover of the standalone DFS pointing to the new share , the domain users in the corresponding access groups (name of the groups based on the old server name) of Full,Modify,Read will be appropriately copied to the respective
    new  groups (name of the groups based on the new server name) of the new share and the access is ensured by the users.
    But in this case , the destination server is already having a share with existing data in it and to be added with the old share data
    My question is shall I use the same command as before by copying all the data to the newly created subfolder inside the existiing destination share through the following command
    "\\server1\oldshare" \\server2\newshare\new sub-folder" *.* *.* *.* /ZB /E /COPY:DATO /XJ /R:0 /W:0 /TEE /dcopy:T /NP /log:c:\robocopy.txt
    You have already mentioned /E without purge options will do.
    Just asking one more time for the safer side
    Thanks & Regards S.Swaminathan Live & let others live!!!

  • Using File Share creates another .motn file.

    Whenever I use the share feature under File to save out a H.264 file it also creates a Motion project file in the directory with the render. Is there a reason for this? I end up with tons of these duplicate files I have to clean up.

    Maybe Compressor is supposed to delete them when it's done? Does it have rights to the directory?
    Patrick

  • Possible to use ZFS export from another server to boot/load LDOM?

    Have a T1000 with 2 72GB disks, configured as a RAID mirror in firmware, so there's not a lot of available local disk space.
    Would like to know if it's possible to use a ZFS volume exported to the base system, to build an LDOM?
    Assumes that we upgrade the T1000 to the 10/08 release that supports ZFS for boot devices.
    If it's not likely to succeed using exported ZFS volumes, will it work for an exported disk or slice?
    Want to use sorage available from an X4500 to ensure ldoms have enough space to live happily in.

    Yes, you can use a ZFS volume as a backend for an LDom.
    Chapter 5 of the LDoms Admin Guide has some good detail.
    http://docs.sun.com/source/820-4894-10/chapter5.html
    "The virtual disk backend can be a physical disk, a physical disk slice, a file, a volume from a volume management framework,
    such as the Zettabyte File System (ZFS), Solaris Volume Manager (SVM), Veritas Volume Manager (VxVM), or any disk pseudo
    device accessible from the service domain."
    You don't explicitly need the ZFS boot support in Solaris 10 10/08 (S10U6) as the LDoms support is independent of that - support
    for LDoms devices booting off a ZFS volume was added to the LDoms drivers in Solaris 10 5/08 (S10U5).
    So you could do the following.
    zfs create -V 10G ldoms/domain/test/zdisk0
    ldm add-vdsdev /dev/zvol/dsk/ldoms/domain/test/zdisk0 zdisk0@primary-vds0
    ldm add-vdisk zdisk0 zdisk0@primary-vds0 ldg1
    An then install Solaris on the guest domain using UFS as the root filesystem
    [or ZFS if you install Solaris 10 10/08 (S10U6)]

  • AutoFS + Samba share problems when share not online (especially in itunes)

    I'm trying to look into having some or all of my media on a server for a couple of my macs, the main one of interest right now being a mac mini working as a HTPC under a tv, being operated 99% of the time with just the apple remote and frontrow.
    A friend informed me that if you have your itunes library not managed and add files from a remote share then everything works pretty well. Namely if you try to play a file it will seemingly automount the remote file and start it playing. If the remote server is not available it will quickly discover this and after a short pause start giving explanation marks next to the broken tracks. Get the remote destination connected and then try to play a broken track and it will successfully mount the track and play.
    Basically perfect.
    I quickly tried accessing these files via a symbolic link or alias to them on the remote drive, in doing this i can be somewhat insulated from problems of trying to move the library to other machines/shares in the future. This all works fine but you do lose the ability for itunes to automatically mount the remote drive, which is a bit of a step back, but not a big deal on my normal machine. On my HTPC machine however i'd really like front row to be able to just work, hence automatically mounting the server as required.
    The only problem was that when i tried with files directly added to the itunes library from a remote location frontrow would NOT automount the tracks/videos when you attempted to play them like itunes would do.
    I've just spent the last few hours following the advice here
    http://rajeev.name/blog/2007/11/22/autofs-goodness-in-apples-leopard-105-part-i/
    to setup autofs in the hope that this would let me get auto mounting working as it does with itunes and directly added to the library remote files.
    I boiled this down to the following settings
    as root
    vi /etc/auto_master
    and add
    /smb auto_smb
    then create this new config file
    vi /etc/auto_smb
    and add
    <Mount dir under /smb folder> -fstype=smbfs ://<share user>:<share pass>@<ip address>/<share point>
    ie.
    testMount -fstype=smbfs ://netuser:[email protected]/remoteMount
    finally tell automount to throw away its cache
    automount -vc
    then the mount should be setup
    df -h
    shows the indirect map waiting
    map auto_smb 0Bi 0Bi 0Bi 100% /smb
    and by triggering it
    ls /smb/testMount
    you should connect and get a listing, a subsequent df shows
    df -h
    //[email protected]/Media 466Gi 325Gi 141Gi 70% /smb/Media
    Everything worked well with the share getting mounted nicely when present, frontrow could just start playing the files it needed, perfect!!
    The problem came when i wanted to simulate the media server being offline, basically frontrow, a lot of the system including finder, cd commands attempting to access the share, and itunes if you tried that would all freeze for long periods of time as they tried their best to get the files they were looking for.
    I tried looking into getting this to gracefully time out and think i got somewhere by trying to setup the samba share to be soft linked.. I wasn't sure in what files i could add this to, first attempts didn't seem to do anything but adding this seemed to make a difference
    /etc/nsmb.conf
    containing something like
    #Configuration file for example.com
    [default]
    minauth=ntlmv2
    streams=yes
    soft=yes
    to turn soft samba shares on. Things like cd in a terminal seemed to behave quite well with this, when no remote share present you would get empty folders and the like. Finder would also seem to be reasonable with it.
    Frustratingly itunes and frontrow both still have quite massive pauses even when finder and cds in the background show that perhaps the soft links are working and failing like they should.
    I'm now left wondering what i can do to fix it, and resorting to perhaps having the files added via a symbolic link, using the login items to launch the remote share every boot and then having it so that all i need to do is reboot the HTPC mac mini if the server is on for it to pick it up and let me play the files. Otherwise they'll just be unavailable and will fail gracefully without locking up itunes. The perfect solution would be to either have a crontab running, or some applescript bound somehow to whenever frontrow is ran which manually tries to tell finder to do the equivelant mount the login items setup does.
    It's frustrating though as its so close, and the autofs solution if it did work better would seem to be the perfect solution. Has anyone dabbled with this and got any suggestions as to options you can setup to make things not go horribly wrong when a remote share is NOT present, preferrably within the context of itunes or front row not complaining, but to be honest any suggestions i'll be able to try out myself.
    Sorry i've written so much, perhaps some of it will be helpful reference as it took me a while to decipher that link at the top into just setting up a samba autofs.
    Cheers.

    It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
    It seems like the windows 2000 displays the cataloge created by windows XP just fine.

  • Leopard unable to send folders to a samba share

    We are currently experiencing a problem trying to copy a pro tools project onto one of our servers via a samba share on the server. When we try to copy/move a directory finder reports that it does not have sufficiant privalages to do so.
    But when we selected individual files inside the directory tree and copied them, they all went over fine and where able to create directories on the server from the client.
    I then used terminal and ls -la to view the contents of the directories and discovered there were a fair few hidden temporary files. All belong to the correct user as far as samba is concerned, but some had the "@", Extended attributes flag attatched. I am able to interrogate them using xattr which shows com.apple.<this part varies> I'm unsure completely what com. files represent, as I am generally a linux user (sorry apple! but hey we're both unixy..)
    Does anyone know of a fix, or if this is a common problem? or any way I can stop osx from spuriously creating these hidden files? or am I going to havto script something.. umm.. somewhere.
    Oh, the server is running Fedora Linux, and the client is an Imac running OSX Leopard.
    Any information would be greatly appreciated!
    Stewart
    I am having difficulty finding a sollution to this problem.

    do you get error -36 or error -50? there are several bugs related to that in snow leopard finder. not sure which one is affecting you. try this link first
    http://support.apple.com/kb/HT4017
    next, see this post. It could be a problem with split resource forks for hidden .DS_Store files if it only affects folders
    http://discussions.apple.com/thread.jspa?messageID=11122044&#11122044
    also see this link for yet another bug
    http://db.tidbits.com/article/10772

  • What can I do to stop high network usage when a Samba share is mounted?

    Ok, so i've done a lot of googling on this, but i've not really found any conclusive answers.
    Basically, when I mount a samba share from another machine, Lion goes crazy. I can see from iStat menus that network (wireless) usage varies wildly from 300KB/s, right up to 6/7 MB/s, but my cpu usage doesn't spike at all. When this is happening the laptop is almost unusable, clicking something can take 30 seconds for a response. I'm presuming that this is something to do with Spotlight trying to index the share, but as it's several terabytes in size, it never completes. I've left the laptop on overnight in the hope that whatever process is causing this would finish, but to no avail. I've also placed the share in the Privacy tab in Spotlight's preferences, and used mdutil -i to stop it accessing the volume, but with no luck.
    Can anyone help? It's driving me nuts and it means i can't access my files without having to ftp in instead.
    I'm running 10.7.3

    Unfortunately, your description of the problem and the placement of both your main and AirPort Express routers does lend itself to believe the problem is most likely Wi-Fi interference. If it isn't the microwave or portable phones, it could be obstacles like walls between the routers that may be preventing the stream from consistently reaching the Express.
    In your configuration, the stream will first travel to the main router, and then, from the main router to the AirPort Express. If, for example, you started the stream in the same room as the Express, that stream would have to travel across several rooms at least twice.

  • Error -6602 while connecting to samba shares.

    Hi everyone, i have some problems with samba client on MacOSX 10.5.8, the problem is that it connects to some shares and some not, and I don't know why, please help.
    Here is my samba configurations on Ubuntu server, the problem starts after logging as a user kuba with password, it shows Erro -6602. Login and pass are correct, I use them with a parallel desktops windows xp, and it works. Mac is working with other server which stands on PLD Linux. I don't know if it will be usefull but if i can tell you that password doesn't contain any special chars, the only one is undescore char. The same password and user with some additional letters works on PLD.
    I can connect to samba shares on this server with smbtree command, if I use
    smbclient //server/share -U user with a password authentication it shows a wrong password (but it's correct).
    When I delete the valid user definition I can connect to samba, but only with a readonly mode...
    [global]
    netbios name = ubunteon
    server string = ubunteon
    workgroup = *********
    announce as = NT Server
    announce version = 4.9
    security = share
    encrypt passwords = yes
    update encrypted = no
    unix password sync = no
    smb passwd file = /etc/samba/smbpasswd
    logon script = startup.bat
    logon drive =
    add user script = sudo /usr/sbin/useradd -g smbusers %u
    delete user script = sudo /usr/sbin/userdel -r %u
    add group script = sudo /usr/sbin/groupadd %g
    delete group script = sudo /usr/sbin/groupdel %g
    add user to group script = sudo /usr/sbin/usermod -G %g %u
    add machine script = sudo /usr/sbin/useradd -g smbmachines -c 'Konto komputera %I' -s /bin/false -d /var/lib/samba/nobody %u
    passwd chat debug = no
    passwd chat = New*UNIX*password %n\n ReType*new*UNIX*password %n\n passwd:*all*authentication*tokens*updatedsuccess fully*
    passwd program = /usr/bin/smbpasswd -L -a %u
    nt acl support = no
    nt pipe support = yes
    map to guest = Bad User
    log file = /var/log/samba/log.%m
    max log size = 50
    log level = 1
    os level = 255
    domain logons = no
    preferred master = yes
    domain master = yes
    local master = yes
    time server = yes
    browse list = yes
    enhanced browsing = yes
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    winbind enum groups = yes
    winbind enum users = yes
    winbind use default domain = no
    winbind separator = +
    unix charset = UTF8
    display charset = UTF8
    dos charset = CP852
    wins support = yes
    read raw = yes
    write raw = yes
    oplocks = no
    level2 oplocks = no
    max xmit = 65535
    getwd cache = yes
    dos filetimes = yes
    dos filemode = yes
    dos filetime resolution = yes
    deadtime = 15
    default case = lower
    preserve case = yes
    short preserve case = yes
    case sensitive = no
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384
    dns proxy = no
    name resolve order = hosts lmhosts wins bcast
    guest account = guest
    admin users = smbroot
    invalid users = root
    load printers = yes
    printing = cups
    printcap name = cups
    [www]
    comment = Webpages
    path = /home/user/public_html
    public = no
    read only = no
    browseable = no
    create mask = 0755
    directory mask = 0755
    valid users = user
    browseable = yes
    writeable = yes
    #printable = yes
    [devel]
    comment = Development Zone
    path = /home/user/0-Developement
    public = no
    read only = no
    browseable = no
    create mask = 0755
    directory mask = 0755
    valid users = user
    browseable = yes
    writeable = yes
    #printable = yes
    [pdfprints]
    comment = Development Zone
    path = /home/user/PDF
    public = no
    read only = no
    browseable = no
    create mask = 0755
    directory mask = 0755
    valid users = user
    browseable = yes
    writeable = yes
    #printable = yes
    [home]
    comment = Home
    path = /home/user
    public = no
    read only = no
    browseable = yes
    writeable = yes
    valid users = user
    [oferty]
    comment = Oferty
    path = /home/user/public_html/2-Oferty
    public = no
    read only = no
    browseable = yes
    writeable = yes
    valid users = user
    #udostepnienia widziane przez wszystkich
    #drukarki
    [printers]
    comment = Drukarki sieciowe
    browseable = no
    path = /var/spool/samba
    printable = yes
    writable = no
    create mode = 0700
    #drivery do drukarek sieciowych
    [print$]
    path = /srv/samba/printers
    guest ok = yes
    browseable = no
    read only = yes
    write list = smbroot
    #katalog domowy
    --------------------------------------------------------------

    Hi Ramya,
    Following checks may help to resolve the issue.
    1) Whether Port 21 is open and allowed to connect with FTP.
    2) Ping, FTP and telnet possible from PI box to FTP.
    3) User mentioned in Communication channel have authorization for read and write on FTP server.
    4) FTP ports are open.
    5) Firewall setting done properly.

  • Finder hang after file delete NTFS Samba share after 10.6.7

    I have Finder problem!
    Before 10.6.7, I had no issue with a Samba share on win2008 server, I have full admin rights for the files.
    Now, I can move the files, change the Directory they are into another, rename them, basically I can do what ever I want with them, except deleting them.
    As soon as I try to delete a file or folder, Finder hangs, And I can't stop the process, killing the network connection does nothing, trying to unmount it wont work either.
    Any clues? Suggestions?

    I have tightened up to the problem to the ds_store invisible files.
    If the folder that has a ds_store file in it and you trash it, it freezes up the mac. (For some reason not most files)
    But after the freeze, the folder permissions get corrupted (or changed maybe not sure) then trashing doesn't work again.
    But if you view the invisible ds store files and delete it you can trash the folder.
    [email protected] let me know

  • Samba Shares and System Lockup

    Hey Guys,
    So I've been having this issue since I got my MacBook Pro, when I'm using it at work I'm connected to various Samba Shares on Windows Server 2003, a Drobo, and a Windows Vista machine. Now, if I dismount all of them when I'm heading out of the office then my system is fine, but if I forget to dismount one of them the entire system locks up upon waking the Mac up. I cannot do anything and I am forced to power down and power back up.
    This is endlessly annoying, as I'm sure you can imagine and I lost a large Photoshop document last night as a result.
    Any ideas guys?
    Thanks
    Chris Pressland

    I purchased our first mac in December 2010. The macbook pro utilizes SMB file shares on one of my windows 7 PC's. I am experiencing the EXACT SAME problem as everyone in this thread. It crashes at least once a week. It's not just Finder but the entire OS freezes including the Dock. It allows you to browse throw the apple menu and select "Restart" but it only hangs endlessly after that. I'm a PC/Microsoft expert and as a new mac user my experience has been extremely disappointing.
    Apple: There is an abundant amount of threads on the web regarding this very same issue. It's not just inconvenient. It's extremely disruptive and frustrating. I am almost on the verge of returning the macbook since apple hasn't cared to even address this issue.

  • Able to view new files from a samba share only after refresh

    Hello Guys,
    I'm currently trying to access a samba share from windows server 2012
    When I access the share I'm only able to view 210 files out of 460 files
    and the remaining files are only viewable after refresh(F5)
    This Issue is also appear to be Intermittent, I'm freaked out with this strange behaviour
    and unable to run my scripts on the share they end up with unable to find the files!!
    Please help me in resolving this
    Thanks in Advance

    Hi, this is due to an issue with samba interoperability.update your samba drivers
    http://blogs.msdn.com/b/oldnewthing/archive/2006/03/30/564809.aspx#comments
    MCP/MCSA/MCTS/MCITP

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • Should I use Samba to share between 2 Arch boxes?

    Hey i have a few questions as i am a complete beginner when it comes to networking/filesharing, please bear with me.  According to the wiki, Samba can be used to share local files between two unix pcs.  I have it working right now and I've read the Samba wiki and i feel it is a bit lacking in information for a beginner, so i have a few questions...
    1. I have it installed on both of the pcs i want to share between, with the same username and the same exact password, is this how it should be setup normally?
    2. The main reason for attempting this is because i have an 8000 or so song collection and it seems silly to have the music on both cpu's, which is how i've had it set up.  I succesfully connected to my laptop through nautilus using the smb://192.x.x.x/sharename method and put in the password and all seems fine, but i want to be sure that the other 3 pc's in my house (all windows) cannot connect to me and see my files.  The wiki didn't help me there, and also did not go though the smb.conf settings thoroughly.
    3. Exaile doesn't seem to be able to browse smb://xxx directories.  If i can't load my music from the other pc to exaile then i have no use for this.
    4. I'm listening to music from my laptop on my desktop at the moment (with VLC) and i'm typing this on my laptop and i'm noticing a slight lag every 20 seconds or so which never happened before, is this normal?
    thanks for any input, i really have to clue what i'm doing here.

    ok, nfs-4 seems like a good choice, but i am having a hard time understanding the wiki.  from the wiki:
    Exporting directories outside your NFS root
    To do this, you'll need to use bind mounts. For example, to bind /home/john to /export/john:
    # mount --bind /home/john /export/john
    Then, /export/john needs to be added to /etc/exports:
    /export    192.168.0.12(rw,fsid=0,no_subtree_check,async,no_root_squash)
    /export/music 192.168.0.12(rw,no_subtree_check,async,no_root_squash)
    /export/john 192.168.12(rw,no_subtree_check,async,no_root_squash,nohide)
    The nohide option is required, because the kernel NFS server automatically hides mounted directories. To add the bind mount to /etc/fstab:
    i dont really know what to do, i'm not familiar with exports and i don't think my pc's have the same ip (192.168.1.???) everytime if i reconnect the router or something.  what does "nfs-root" mean?
    Really all i want to achieve is accessing the home directory of the other pc and vice versa, while limiting access strictly to my pc's.

  • Serve from a Samba share under Enterprise 6?

    I'm trying to get Enterprise 6 on XP to talk to a
    Samba share. Each time I configure the document root
    in the virtual server, I get "Virtual Server configured with non verifiable docroot". I've tried the mount path
    and the UNC path.. I've tried changing the service to
    run the server as me, with the network drives actually mapped, but then it fails on startup. Is this a case of
    making a "SYSTEM" user at the samba server with no password? Seems that the config tool could support this kind of thing.. Thanks if anyone has a solution.

    Good point. I diverged a bit and uploaded the app to
    our Solaris production server. I figure that If I
    can get it working there properly, I don't care if
    the app isn't cross platform in the dev environment.
    So now, I'm seting it by using a simple img tag like
    this:
    <img
    src="/usr/home/images/logos/members/loc_logo.gif"/>[/c
    ode]
    This should work, right?Well, then the paths need to be relative to the web app's root directory. It should not specify actual root directories on the server itself, and you should put the images and other resources in the web app's directory tree.

  • Setup Home Directory that is on another server?

    Hi there,
    I have setup a server (10.4) where each users home directory is kept on an xserve raid that is connected via fiber. When a user logs onto this server, they can mount their home folder or the other shared folder which has a bunch of stuff in it.
    I also have another server (10.3) which does not have user home directories setup on it. What I would like to do is setup the 10.3 server to mount a home directory that is on the xserve raid when a user logs in. So regardless of which server they are authenticating to, the home directory that is mounted sits on the xserve raid. Again, the XServe Raid is not connected to this server (10.3)
    Here are the specifications:
    10.4 server: server4.local
    XServe connected to it via fiber
    Users on this server have the home address of: /Volumes/XServeRaid/Faculty Folders/asmith
    10.3 server: serverone.local
    What would the information be for the following fields on the other server?
    Mac OS X Server/Share Point URL:
    Path:
    Home:
    Thanks very much
    Andrew

    The way you do what you are describing is to keep the Account information in the same place it is now, but change the pointer to a User's (or collection of Users) Home Folder.
    To transition to that:
    • decide where the User's new Home will be.
    • create a new folder for that user at the new location.
    • copy the user's files to the new location.
    • change the home pointer in their account record.

Maybe you are looking for