General :: Windows - View The Unix Permissions Of A File In A .zip Archive?
May 19, 2010is there a way to view the Unix permissions for a file under Windows?
View 1 Repliesis there a way to view the Unix permissions for a file under Windows?
View 1 RepliesAnyone know how to compress a file to extension z?not tar.gz , zip, 7zip
View 6 Replies View RelatedI am tring to get the MAC address from windows xp and remove it from a file on a unix box. This is what I have so far:
getmac | plink.exe -ssh -pw "my pw" -noagent -m commands.txt root@192.168.1.82
commands.txt
cd /root
tr '-' ':' | tr -d '[:blank:]'
now this is what I get
10:9A:CD:5F:04:8ADeviceTcpip_{5A79FE8D:F227:4B91:9459:2701486C5D94}
All I need is the MAC. Everything after Device* is not needed.The file is /var/db/captiveportal_mac.db. The MAC address are listed like this.
MAC1
MAC2
MAC3
MAC4
MAC5
I already had ubuntu 32 bit version 9.10. but due to some tool compatibility reason I need even the 64 bit version 9.10. I dint want to delete 32 bit version so I wanted to install both on my system. I have windows vista as well.
So I booted with 64 bit version of Ubuntu, went on with the installation, until the point were it asks to choose the partition. 32 bit version had 16GB allocated and 10GB free. so I thought I will make new 8GB partition from the 10GB free space. So I selected the partition and clicked on change, and specified 8GB and ext4 format and mount point as "/". I clicked on continue and in a few seconds it popped up with an ERROR message, which I can't remember exactly, but it meant to say that it could not make the changes as the disk to which the changes were made is in use. So I should not use it until I reboot. So I rebooted and now I have grub error : file not found and grub rescue> prompt.
I tried to boot with the 64 bit CD again with the option of trying ubuntu without making any changes and it does show the 16 GB partition, but when I mount that partition I do not see any folders in the partition except for a folder named "lost+found". I try to view the contents of this and it says I do not have the permissions.
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]....
I'd like to ask about archive mounter feature, can I mount zip file with read write mode? can gvfsd-archive do that?, or I must use fuse-zip to mount it? If I must use fuse-zip, how I wrap it so I can use it via nautilus or via gvfs-fuse-daemon
View 4 Replies View RelatedI 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.
I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop
View 8 Replies View RelatedI'm using [URL] to help set up my server for windows file sharing. I accedently pressed unix file sharing and now i can switch it to windows file sharing.it would be fine to uninstall the Unix file sharing and replace it with the windows counterpart.I have Ubuntu desktop 10.04 (because i keep getting an error with the kernel with the server editions)
View 1 Replies View RelatedAfter Days of trying to install Nagios, I eventually got everything working fine ! The only problem now is I get the following error message on the nagios web interface: "It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."
View 1 Replies View RelatedI need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.
View 5 Replies View RelatedInstalled 10.04 within windows. When i bring up Ubuntu i am unable to view the windows files. What am i not doing or .
View 5 Replies View Relatedi am now running Slitaz 2.0 and i would like to know how to run windows applications on my system. My OS didnt come with this wine ive been hearing about so i dont know what do do.
View 7 Replies View RelatedIn follow-up to the cmd.exe question, what is the PowerShell equivalent to echo %cd%, or Linux/Unix pwd?
View 3 Replies View RelatedOn Windows, you can go to a file's permissions and it's clearly stated who can do what. You can choose between individual users or groups such as 'everyone' or certain types of users such as 'domain users'. You could create a clear cut list of every single user/group on the system and what their permissions for a file are and have it neatly displayed in a list.On Unix, we have octal permissions and sticky bits. I understand the whole concept of rwxrwxrwx (777). The first three are what the file owner can do, the second is what the main group the user belongs to can do, and the third is what other users can do.
But, when you view a file's permissions you are only getting the permissions as they apply to the user that owns the file. For example, as I understand it, if I viewed a file that only the root user had rwx permissions on and everyone else could only read. The permissions would show up as rwxr--r-- (744). But, those same permissions would show up to any user as 744 as well. Since the last 3 characters are what applies to "other users" (pretty vague). How would someone know what users in particular those permissions apply to? There could be one "other user" that can rwx that file and another "other user" that can't.Also, why just stop with the main group? What about other groups? A the user Foo's main group he belongs to might be Foo. But he could also belong to the groups Boo and Zoo, which belong to other users and would give him full rwx permissions over Boo and Zoo's files just as if he were Boo or Zoo.
Then you have the whole sticky bit thing that makes it so that files can be owned by the same person and at the same time be made use of (to varying degrees) by other users. To chmod the UID you'd chmod 2777 or for GID 4777 (just an an example). I did this for a file and it allowed a standard user account who was previously unable to run the command to be able to run it. But, how can that work when I didn't anywhere specify what particular user (or groups of users) that sticky bit applies to?
I'm confused about this whole thing to the point that I'm not even sure exactly what questions I should be asking or even if my examples are even 100% correct. I just sort of ranted about some specific things that floated to the top of my head. Permissions are easy to understand when your running a Unix-like system on a single user desktop. Because the only users/groups you have are root, the single user, and various system users/groups that you don't really need to worry about. So a file with rwxr--r-- means that only the Root user (not even members of his group) can edit the file and you can't unless you use sudo. Because the "other user" in the last 3 characters always just means you. But, things seem to get a whole lot more complicated when you start adding in multiple users. Can someone explain this or link to a "for dummies" article that can explain all of this to me in a way that someone who's used to Windows style permissions can make a connection between the two OS families and their way of handling these things?
I have a folder in a Samba shared drive which I've done the following with (in Unix):
1. Changed owner to Administrator.
2. Changed group owner to Domain Users.
3. Granted 700 (drwx------) permissions
4. Connected to Windows server via remote desktop
5. Mapped the Samba network drive as administrator
6. Right clicked on the folder > properties > security tab > advanced, and added one person (let's call him Joe) who has rwx access on that folder and everything in it. (along with administrator)
7. Went back to check Unix permissions on the folder and found that they had changed from drwx to drwxrwx+. Same goes for everything inside it.
8. Checked the ACL.
Unix permissions 000 given to directories.I m testing Netatalk 2.0.5 on my fedora machine with afpfs-ng. I m using afpcmd command to access the volumes on the netatalk server. the directories that i m creating via afpcmd are being created with permissions 000. I cannot browse thru them.
View 3 Replies View RelatedI am trying to sort image files I've assembled for document production, and I need to be able to see the height and width of the images without having to open them one by one. Is there a way to view an image's physical size in the folder window?
View 1 Replies View RelatedWhen trying to delete :
I must say that the tar file contain only soft links...not real files...
I have a directory there are many files are writing to it , I would like to write a script to do that , can please provide the advise .
archive all files to one single file in every 30 days , and then remove these old files .
What are the directories and files in Unix file-system that has default user permission set. For eg. home directory of a user can't be seen by the other users on the system without his permission. In the same way what are the other directories that by default has user permission set at the time user account has opened. Eg. /etc,/bin or what
View 3 Replies View RelatedWe planned to migrate data files in Unix to Linux. The file in Unix is in big endian data format where is linux is configured as little endian byre structure. This is causing problem in data computation.
How data can be ported to linux ( converting big endian to little endian).
How linux configured can be configured for big endian byte structure.
I made USB live and successfully mounted usb. Commands I used are shown below:
sudo fdisk -l
in response to the first command: sdb1 250GB(this is the target)
sudo mkdir /mnt/usbflash
sudo mount -t auto /dev/sdb1 /mnt/usbflash
All done without any problems. However, when I tried to open file /mnt/usbflash, a dialogue jumps out says "do not have permissions neccessary to view the contents of usbflash". I googled it and found out someone solved this with Alt+F2 and type in 'gksu nautilus'. I tried, and it worked!!! However! Not single file of my 200GB files were shown there! How could it be?? I used comman "ls /mnt/usbflash" to check, and it shows correctly the files inside.
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?
Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files?
I found this from [URL]. I'm not familiar with this command shift-8-y-y. I follow the vimtutor and use virtual mode. I tried this sequence and was unsuccessful.
And, I read this about registers. I found a mention of using double_quote-p to 'put' or paste the register, but this does not work in a different file. The second file reported the register empty.
Alternatively, I read in the VIM docs, it is possible to open multiple files under split screens. This may be a course to a solution. The need I often encounter has me navigating in a different bash window to find a file, then wishing to copy between the two. Whereas, I imagine, a split VIM window useful for files in the same directory.
Solaris is the os used. I want to copy files from UNIX Machine to windows network drive.I know smbclient,ftp can be used. But is there any other best option i can use?
View 2 Replies View RelatedIs it true that the UNIX commands to send a file to a printer for printing are system-dependent?
View 2 Replies View Relatedthe below tag is in the xml file. Now i want to find and extract the value of application name test1 and test2 one by one in the unix shell script. how to do this
<application name="test1">
</application>
<application name="test2">
[code]...
How to Look at history file in unix shell for a user, find 5 most often used commands.
View 5 Replies View RelatedHow can I check and set who can view or open a given folder or file?
View 1 Replies View Related