Ubuntu :: Access Mounted SFTP Folder From Within Programs?
Mar 8, 2011
I have a project stored on a university server which I'd like to be able to work on from home.
I already have an SFTP folder set up, which I can access easily in Nautilus, and I can freely copy files back and forth, or open them in e.g. gedit.
However, the project is in Matlab, and I cannot see the mounted SFTP folder from within Matlab. This means that I can't work on the project in Matlab without copying the whole lot across to my local machine when I want to work on it.
Is there some way I can get Matlab to "see" the connection so that I can use the mounted SFTP folder like any other in my filesystem? It appears on my desktop when connected - does it have some other mount location?
I want to give a mounted folder /mnt/folder access so that 'root and the group test have read write access' and all other users have read access I understand most of the chmod command, the users groups world etc but where in the 'command' do you specify which 'group' or 'user' you are giving the read / write access to? in all the tutorials i've seen no where do you specify the actual group or user.
I want to allow users to user sftp to upload and download files frome one folder, as you know this uses ssh, my question is if i create user to access linux serverthrough ftpd they will be able to browse the root directry, can I create users and ristrict them to only specific directory?
I want to share files over the web with only a few people and limiting them to certain folders. I have been doing a remote access (ssh) to my server to access it from a pc on the local network. I later found out the same program doing ssh (open_ssh) was also doing sftp, great I could do both with one system account. Problem I couldn't find away to configure another user to go over the web with limited folder access without messing up my user to access the pc. I tried ftps by using vsftpd, I couldn't get chroot set up correctly or even log in. So my question is what program and/or protocol should I use to do secure ftp over the web?
allow sftp access to my Ubuntu system (happens to be desktop as it's also my main system) using accounts that are not able to login normally. (I have already managed to create such accounts.) These accounts need to be chrooted (also already accomplished with the openssh daemon settings.) Where I run into problems is that I want to give them (read only) access to files outside the chroot (on another partition in fact) and the matter if made more difficult because the directories to be shared are on NTFS-3G partitions (as they are a shared linux / windows storage drive). Is this possible and if so, what do I need to do?
Edit - Forgot to include versions Ubuntu 10.10 openssh 1.5.5p1-4ubuntu4 (the one that comes with 10.10)
i want to allow some friends to ssh/sftp/scp into my system but i only want them to have access to my external hard drive (/media/externalHD/), and i dont want them to be able to delete or add anything, only download.i have found instructions on how to limit a user to his/her home directory and thought about just creating a user with the home directory /media/externalHD but idk if this will work and im afraid i might make a mistake and delete 800gb of 'files'
I want to access my files on my home computer when I'm away (school, vacation etc). I set up a scheduled task to send to send me my external IP address by email because I have a dynamic IP and dont want a static url. (dyndns) I planned to use sftp for an encrypted connection, but I dont know where to start. How can I set up my computer to accept incoming requests, but without any security issues?
I have an NTFS file system nfs-automounted on our RedHat servers. Users can read and write to the file system no problem, and can create new files, edit them, and delete them to their heart's content. The only issue is that utilities such as "dos2unix" cannot create temporary working files:
$ dos2unix events.0818.dat dos2unix: converting file events.0818.dat to UNIX format ... Failed to open output temp file: Operation not permitted dos2unix: problems converting file events.0818.dat
This isn't limited to "dos2unix"; any other utility that creates a temporary working file gets the same problem. If I copy the file to a local file system like /tmp, it works fine. Here's the kicker: this works fine on Solaris systems. I can take the "dos2unix" utility over to a Solaris system that has that exact same NTFS file system automounted via NFS, and it works. No issues creating temporary working files at all.
I am currently running Ubuntu Server 9.10 as an FTP server. It has become a necessity to allow users access via SSH terminal or sftp via WinSCP. I need to be able to monitor what users are doing at any given time and be able to pull up each users activity history. Essentially I need to be able to pinpoint who modified a file at what time. Also what is the best method to monitor things like nmap probes?
right now i have vsftpd server installed for FTP access. I originally set it up for both FTP and SFTP, but found that SFTP disregarded any and all permission settings and user jailing that i had set up... so I am switching to just being standard FTP
so here is what's happening:
i've tried to disable SFTP in the sshd_config file, but i am still able to log into the ftp server under sftp through port 22 (which normally is ssh?) i've tried all kinds of things short of just blocking port 22, however I would prefer to be able to remote into my server via Putty (which has access restriction to ONLY allow my admin user account over ssh)..
We have an Iomega StorCenter ix4-200d in our office. for past two days the shared public folder is not getting mounted. but it's working fine through the web interface i.e user can upload/download.that rules out the permissions problems.
I am providing the output of mount command:
t227@t227:/var/log$ sudo mount -t cifs --verbose //192.100.100.37/public /mnt/public/ -o username=shrey [sudo] password for t227: Password:
[Code]....
in fact i can't access any of the folder which I am having permissions to rw.but it's working fine through the web interface.
I tried changing the sftpserver port but its not working, besides how can i restrict users from particular ips.Eg: users a can ssh from 192.168.*.*user b can sftp from 200.*.*
I want to have a shared folder mounted on startup and I put the following in my fstab: Code: VMShare /media/VMShare vboxsf defaults,gid=1001,dmask=002 0 0 Where did 1001 corresponds to the virtual share group.
When I boot up the permissions are as follows(from ls -l): Code: drwxr-xr-x 1 root virtualshare 68 2010-10-27 15:45 VMShare/
So I'm curious why it's group permissions aren't the same as owner? In the fstab I put dmask=002 which should lead to rwxrwxr-x so basically full permissions for owner and group and read/execute for public. However thats not what I'm getting. Also once I get this working correctly am I going to have an issue if the virtualshare group isn't a users primary group? On some older unix servers I ran into this issue, hopefully it won't matter as long as the user in in the group.
I'm dual booting on a laptop with an 80gb hd. I've set up the partitions so windows xp has 20gig, ubuntu (edit: 11.4?) has 7 gigs, 3 gigs swap space, and the rest is formatted as FAT32 that I'm looking to use as shared space between the two OSes. The ubuntu live install partition tool suggested (possibly demanded?) that the fat32 be mounted as /windows or /dos, and I chose the former. Everything's running fine, both OSes see the partition, but I can't set my home folder to exist in this shared space.
I've been in system > admin > users and groups- I try setting the home folder as /windows/home/chris. (I had a home folder backed up that I have already copied to this location) The dialog recognizes that there's a folder there already, asks if I want to use those new files or copy old ones. I say use new files, and close the window. Nothing changes though- in fact if I open users and groups immediately after, it's already reverted to /home/chris . I've tried changing from a different user account as well.
I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)
Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?
I am using Mandriva 8 as my local server, i want to configure sftp sever by which particular user can access particular directory of our local server by using ftp client, can anyone tell me how can i do it?
I recently changed linux distros and switched to Karmic. In my earlier setup /home was on a separate partition.
After switching to karmic I added the following line to /etc/fstab to mount my /home partition which was on /dev/sda6 (ubuntu is on /dev/sda7) /dev/sda6 /home ext3 nodev,nosuid 0 2
After rebooting I saw that while earlier I had an empty desktop now my desktop shows the content of my home folder.
On googling I found out about how I could change the nautilus preferences.
I used gconf-editor to change: apps>nautlius>preferences>desktop_is_home_dir to false
I also changed: apps>nautlius>desktop>volumes_visible to false.
However on rebooting I still see all the contents of my home folder on the desktop.
What do I need to do to show the Desktop as blank (as in point to ~/Desktop rather than point to ~)?
I have roughly 5Tb of movies spread out on 6 drives in my system. I'd like to create a folder that will display the contents of certain folders without actually moving the data. For example, I have 3 drives with /HDMovies and 3 with /SDMovies. How do I create two new folders /HDMovies and /SDMovies and have the data from the drives be collected?
When booting opensuse 11.2 or 11.3 there is automatically created a folder in /media to mount my external usb drive (in /media/disk). The problem I have is that sometimes these folders are not automatically removed when I shut down. On the next time boot this device is mounted at /media/disk-1 or /media/disk-2 which throws off for instance Krusader or Amarok. Also the folders that are not removed seem to have really strong permissions such that I can't even browse into them in Krusader or Dolphin. I have to manually clean the /media folder as super user so that when I reboot, they are in /media/disk. Does anyone know how to ensure that opensuse removes the folder(s) upon shutdown?
I'm using fedora8.When i mount shared folder on windows,it was mounting and i can browse the files and directories in terminal as i have full permissions on that.But,when i open the mounted directory in GNOME Environment,it was saying you did not have permissions to see the contents,every directory and file has been locked.
I have a nightly scheduled script which creates a $vhostname directory under /mnt, mounts a windows box pointing to /mnt/$vhostname then rsyncs (pulls) some files/folders from the mount point. After this, I want to unmount the drive and remove the /mnt/$vhostname directory. Problem is that removing the /mnt/$vhostname directory sometimes ends up deleting all the files on the source! Example of script (stripped out lots of superfluous stuff):
It seems that my umount line isn't disconnecting the mount, leaving the following line to literally delete all directories, recursively. Is there a way of safely just deleting the directory (ie: mount link) without linux accidentally trashing the whole source?
Size Label Mount point File system 52 GB Multimedia /MM ntfs 52 GB Backup /ABackup ntfs 52 GB Extras /Extras ext4 27 GB root / ext4 60 GB home /home ext4
The problem is that I cannot access the /MM and contents. I tried Properties > Permissions and changed applied the changes to subfolders and contents too. Now I can access /MM but not the contents. All are marked with a lock logo.There are numerous folders/files.Changing the permissions individually is a hectic work.possible to do it in a command line/script?
I am trying to access a mounted secondary drive through FTP, and when I try to connect to it I am not able to see any of its contents. Any suggestions? I am using Gadmin-proftp to configure. I can point it to any other folder on the main drive and see it perfectly.
i just installed ubuntu, i am having a problem in accessing my windows files. Now as you see the 500 gb hd is mounted, but when i go to places it shows that i have 2 500 gb hds, none of them is actually the one that i have the windows system on it or my files.i looked throughout the whole web, i need your help if you know how can i access my windows files.