General :: Preventing Windows Version Of Vim From Destroying Other File Systems Permissions
Aug 30, 2010
I am currently using the windows version of gVim to edit source files on a networked drive mapped to a linux system, as well as local files created in cygwin.
The problem is that the windows version of gVim destroys the original file permissions on the respective systems. IE: Files on cygwin are defaulted to 077. When edited by the windows version of vim they are saved as 777.This problem doesn't even occur when using ms-notepad (as well as all other editors I've tried), so I am not quite sure why gVim does it.
A possible solution would be to use cygwin's gVim for everything, but that's rather cumbersome as it requires running an x11 environment to support it, and it causes some problems when running some commands from within gVim (or vim for that matter) when working on the networked drive.
Any ideas how I might be able to maintain the existing file permissions?
This morning while on a different machine the problem with cygwin did not occur. Cygwin & gVim were the same version, however the other machine is running WinXP while the machine the problem is occurring on runs Win7.
View 1 Replies
ADVERTISEMENT
Jul 16, 2011
I have a NTFS drive mounted at /media/bigbrother as my user. I have no trouble reading or writing to files here. I just created a link to /var/www using: ln -s /var/www /media/bigbrother/
The link is there however, I can't even open the folder. How should I go about getting access. So that I'm able to copy files from other systems on the network.
View 1 Replies
View Related
Jan 29, 2011
How to get the permissions of any file systems
---------------------------------------------------
what does it mean?
"permission denied while opening filesystem"
through commands can we give/get permissions of file systems
View 4 Replies
View Related
Aug 13, 2010
What limits a file to have some maximum size depending on the Operating System? I do not exactly understand this. If you have the storage space, what else can be the limitation? You should be able to store as much data as you want the way you want (even in a single file) unless you run out of storage space.
View 5 Replies
View Related
Apr 28, 2011
Back in the old days of PC-DOS 3.1, computers are much simpler than today's. I can learn a lot of how File System works with tools like PCTools, Norton Disk Doctor, and [URL]. Have been working exclusive in corporate database application area for over a decade, my knowledge of how these stuff work is diminishing. Standard-clean OS (Windows, Linux) installation is all I can do now. And it starts to cause me many data-loss troubles, when I have to perform something that I don't have much insight, such as install and remove peer linux os or move and resize partitions.
I'm looking for books, web resources, or communities where I can educate myself on how various file system works, for which I can have in-depth answer to questions such as:
How to remove ubuntu and grub2 ? (I recently did that, but with a lot of frustration when I was not really sure what I was doing and confront with some scary error message like "Missing BootMgr" What kind of disk-partitioning operation can be performed non-destructively, and why ? What is Active partition ? Primary Parition ? Extended Partition ? How it stored on the disk. There are many free partitioning tools out there, which one is safe to used ? NTFS, Ext3, Ext4, .. What the differences ? How to choose it wisely.
View 2 Replies
View Related
May 19, 2010
is there a way to view the Unix permissions for a file under Windows?
View 1 Replies
View Related
Mar 2, 2011
Here is my fstab's content:
/dev/sda7/media/entfsdefaults00
/dev/sda8/media/fntfs-3g silent,umask=00000
[root@localhost code]# ll 2
-rwxrwxrwx. 1 root root 0 Mar 2 20:19 2
[code]....
View 3 Replies
View Related
Apr 4, 2011
I like less and use it as my default pager in Linux. However, there are times that I am scrolling down through a large document quickly and less exits when I reach the end of the document before I have time to stop scrolling. I'd like less to exit only I type q, and not because I ask it to scroll beyond the end of the document. Is that possible?
View 1 Replies
View Related
Feb 7, 2010
Don't ask me why, but I need to back up a website with complete structure to a windows machine (so no tar/gzip - just an identical copy). I'm experienced with rsync, so I thought to do it that way. However, in the process I'm bound to lose my ownership/permission settings for each file and that will give problems when placing back certain files. Is there a way to either:
1. save those settings on a windows machine?
2. have an easy way to save the filetree with relevant information and a shell script to attach the info back when uploading files again?
View 2 Replies
View Related
Mar 18, 2010
Possible Duplicates: Dual Booting Linux and Windows XP Booting Multiple Operating Systems I have a machine with Windows on it, and I would like to be able to reboot to Linux. I am certain this is possible. How can I achieve this?
View 2 Replies
View Related
Apr 23, 2011
I am in the process of running some benchmark tests on a variety of RDBMS, I am testing three different client operating systems.Would it be terrible to partition the HDD and install Ubuntu, Windows 7 and Solaris 10? If I do not do this, I will likely have to re-install the O.S numerous times due to changes in the database server o.s as well. The same question goes for the server; would it drastically effect the performance to install 3 server o.s on one server?
View 4 Replies
View Related
Oct 5, 2010
I'm familiar with the software and hierarchy of the mount command but I can't find any info on why it is needed or preferred. What are the physical aspects of it? What is the burden of having files accessible all the time?
View 14 Replies
View Related
Jul 23, 2009
I was wondering if it was possible to hide the File Systems from a user. So when then browse through folders or choose to save something the default folder is their "home" folder. I am using SAM Linux distribution and don't want my users to be able to screw anything up! I use thunar as my file manager and was just wondering if it is possible?
View 12 Replies
View Related
Apr 29, 2011
I have to move files between two file systems /inst and /inst2.When I perform 'cp -a /inst /inst2' it copies everything even hidden files and preserves access permissions.But when I perform 'mv /inst /inst2' it also preserves access perms and moves everything besides hidden files.Questions :hy is so ?What tool to use when moving file systems from one fs to another (rsync) ?
View 8 Replies
View Related
Aug 11, 2011
I am about to work on getting the workstations on my network here to be connected to the Active Directory on my Windows 2003 server using Likewise Identity Service. of the security requirements is a good time sync, so I am trying to setup my Windows server time server on my CentOS machines. These machines dual boot Windows 7 and CentOS 5.5. I am using the Windows server as a time server and it's getting its time from its CMOS.llowing a microsoft kb article. I removed all the time servers from the CentOS box I am experimenting with and added the IP of my Windows server, it seems to connect ok but theime never gets updated.Oh, and this network has no connection to the internet it's cut off from the world, so sad and lonely and cannot get internet time
View 3 Replies
View Related
Jun 11, 2010
Is it possible to copy zipped (my.zip) files from Windows systems to Linux systems and unzip them without any corruption.
I know the command unzip is available, but I want to know if this copying from WIndows to Linux could lead to file corruption.
View 7 Replies
View Related
Sep 29, 2010
iv been looking around at the different Linux systems particularity the smaller ones such as DSL, Slax and Puppy Linux. However i need a Linux distribution that doesn't have a GUI desktop environment just the plain old terminal to work on. The system would have to be able to boot from a USB drive also. If anyone knows a systems that fits those requirements or something else related please post. Also what file system is best for USB drives for booting systems?
View 4 Replies
View Related
Nov 2, 2010
I have a remote directory shared over NFS called tech with perms set as 0750 and owner set to root:tech. I have 2 groups: tech, and techAdmin. tech can read and execute within tech/. techAdmin can read, write, execute. I have 4 users: user1, user2, user3, user4. user1 and user2 is a member of techAdmin, user3 and user4 are members of tech. simple so far...but wait here's the problem. If user1 creates a file inside tech, user2 cant read or modify it because user1 owns it. Here's a few sites that reference this problem:
[code]....
View 4 Replies
View Related
Aug 12, 2011
I have Windows 7 working on my laptop. I have 20GB space unpartitioned. I want to install a flavor of Linux like Fedora or Ubuntu in that space, but I have heard that keeping a dual OS configuration sometimes results in losing data stored on the hard disk. I've also heard that it may sometimes cause unrecoverable problem because when Linux is loaded on hard disk it will take over the boot loader from Windows.
Is this correct? Moreover, I have 6 partitions in Windows, but if I use a Live CD for Ubuntu or Fedora to boot, then it is not showing some partitions -- sometimes it shows only 4 or 5 partitions. What might be the problem, and how to resolve it without formatting the whole hard disk and repartitioning it?
View 1 Replies
View Related
Apr 10, 2011
One of the good points of linux is that is easy to customize the partitioning scheme of the disk and put each directory (/home, /var, etc) in diferent partitions and/or diferent disk. Then we can use diferen file system/configurations for each of them for make them better. xamples:
noatime is a mount option to not write access time on the files. data=writeback is an option to layz write metadata on new files. ext3/4 has journaling that make the partition more secure in case of a crash. bigger blocks make the partition waste more space, but make it faster to read and may become more fragmented. (not sure) Then: What are the best filesystem/configurations for each directory? Note: given the answer of Patches, will only discuss /, /home and /var only.
/var -> It's modified constantly, it write logs, cache, temporal, etc.
/home -> stores important files.
/-> stores everything else (/etc and /usr should be here)
View 1 Replies
View Related
Jul 5, 2010
I'm interesting in knowing what processes could be altered to improve performance and functionality on my system. And which process may be the best one to alter
View 2 Replies
View Related
Dec 10, 2010
Some time back using this computer a SucKit rootkit was found. Having dd urandomed the drive, flattened CMOS battery, flashed BIOS, run Knoppix live CD 6.1,using no flat pack battery (laptop), and memtested the RAM, I am still having problems with what I suspect is a javascript file that tries to reload the rootkit from? firmware. I suspect the firmware as everything else should have eradicated it??
Also it or a hacker via a backdoor then corrupts the drivers so devices malfunction. Windows security programs and rootkit detectors don't seem to pick it up. Fresh install of Windows or linux after the above still show this problem, though internet not used. The person who admitted rootkitting this machine is capable of writing java programs or using javascripts to do all this.
When viewed using Ubuntu 8.4 files and dates on a Windows partition appear normal both in file manager and terminal. However booting using Knoppix CD these files are all green, and I cannot change their permissions, even as root. ie: everything is green including text files etc. If I copy them to a linux partition, I can change their permissions and make them nonexecutable and nonwritable. Also on the Windows FAT32 partition the . directory has the date 1 Jan 1970.
If I disable any green files, I can shutdown and reboot cleanly. If I don't I start having problems shutting down [/usr/sbin/init ?] And always these follow a pattern:
Can't remember details as I have now corralled the beast but error messages relating to:
nfs-server
inet.d/statd
are the start of these.
View 3 Replies
View Related
Nov 3, 2010
I do not want my windows to be dragged and placed partially in two desktops. However, I have enabled Edge flipping to move window to next desktop. My problem is with partial overlap. Something which makes the windows stay completely in the desktop, but at the same time allow edge flipping.
View 1 Replies
View Related
Nov 27, 2010
A while back I installed Dreamlinux 3.5 Gnome edition using ext2. When I attempted to use the email address books I imported from the Dreamlinux3.5 XFCE edition, which had been ext3, I discovered that none of the email addresses could be mailed to. I had to manually type in the addresses.
When I reinstalled Dreamlinux 3.5 Gnome using ext3, the same backup files that did not work in ext2 now work just fine. The question is, was this a "broken data" problem caused by the switch to ext2 file system or something else? Has anyone else experienced this?
The mail program is Thunderbird.
View 2 Replies
View Related
Apr 6, 2010
I have an ntfs partition that I wish to access as a normal user(non-root). For this I did the following. As root I created a folder /windows and did a chmod 777 -R on /windows. Then I added the following line to /etc/fstab
Code:
/dev/sda3 /windows ntfs-3g defaults,nosuid,nodev,umask=000 1 0
Now, the partition is mounted alright but the problem is that when any other user (non-root) creates a files in /windows (say by executing touch newfile) the newly created file has the owner and group set as root. The non-root user can create the file and he can also delete the file, however, he cannot change the permissions of the file and also the owner:group is always set as root:root. How do I get across this problem, i.e. how do I mount a partition, so that a non-root user can also change the permissions and ownerships of the files he creates.
View 2 Replies
View Related
Jan 6, 2010
Im using it in an attempt to backup all of the files off of my dead Windows xp Computer. Right now I am using the 9.10 live disk of Ubuntu and cannot get the program to recognize what kind of file system my internal hard drive is using. (A western digital 320 GB hard drive with partition 1 in NTFS and part2 in FAT32) I would like to be able to back up this drive onto my 1 TB Western Digital external hard drive that is also in ntfs.
Now here comes the wierd part, it won't read or recognize my interal and external hard drives that run those file systems but it will recognize and allow me to read, edit, and access all of the ntfs hard drives on my home network. I did some lurking and tried a tutorial for creating a mount point and on how to force mount a disk, but neither of my disks would show up in Places/Computer. So then I checked the /etc/fstab file and is says,
aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
Which I think means that it says I have no hard drives installed or connected to the computer. Yet when I go into Disk Utility it tells me the disk is there and asks if I want to format the disk into ntfs...
View 10 Replies
View Related
Nov 5, 2010
What methods exits to restrict which directories a user may browse on the filesystem. I want to prevent php scripts from being able to view system files. I've seen two solutions, but neither are satisfactory:Chrooting a directory that the script is in, but this requires that all the necessary php libraries/files are moved/copied into the right place relative to the chroot directory. I don't feel that I have the technical ability to achieve this.Putting php into safe mode and disabling *nasty* php functions. But this is ineffective if just one obscure *bad* php function is missed.
View 5 Replies
View Related
Oct 16, 2010
Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?
View 2 Replies
View Related
Mar 31, 2011
It seems that by default a Windows share mounted at /mnt/Windows/ will be owned by root and have 755 permissions set on all files. I usually do a chown or chmod to allow my user to have write access to these files. Does that affect the Windows files in any way? It takes quite some time to complete the chown/chmod when there's a lot of data. Where is the Linux permission data kept for the Windows share? On the Linux computer where I set the permissions? I just want to get a better understanding how this works.
View 5 Replies
View Related
Apr 19, 2010
I have successfully used a Knoppix Live Boot CD to read the disks of a Windows Computer running XPI need to move some registry files around to make it boot into XP again, but I get a denied access error when pasting files into a directory
View 8 Replies
View Related