a question on permissions...
1. What happens if you have a file with a 755 permissions and transfer the file from one linux computer to another linux computer, both having ext3 filesystems. Do the permissions change to the default permissions of the directory that the file was downloaded to?
2. What would happen to the permissions if you transfer a file from linux to windows ntfs hard disk? 3. What would happen to the permissions if you transferred a file from fat32 filesystem on linux to a windows fat32 hard disk? 4. What would happen to the permissions if you tranferred a file from windows xp ntfs to ext3? What would happen if you transferred the file right back from the ext3 to the original ntfs filesystem on windows xp? |
Quote:
|
lol, yeah I guess they do. I tried to phrase them as clearly as possible.
|
Quote:
If you write to suggest that someone has a school assignment and is posting questions to crib the answers, you presume the bad intentions of someone new to LQ. Not very friendly. Even if you are correct, how is this any different from asking someone down the hall or in a coffee house these same questions? Sorry, ~~~ 0;-Dan |
Quote:
Quote:
Quote:
Quote:
you know people should not do you homework for you |
Quote:
The remote process attributes and context control what happens during the file write attempt. Quote:
Quote:
"-r--r--r--" meaning everyone can read . You must be able to read the file before you can copy from fat32. It does not matter which OS runs, fat32 is just that. [NOTE--Recent court rulings cover the use of fat32 on systems that are not native Microsoft or suitably licensed.] Quote:
Windows has its own rules when copying files. In windows networking, file attributes change hands. Linux accomplishes windows networking using a package called SAMBA. The SAMBA docs do a very good job of explaining how permission decisions are made. Cheers, ~~~ 0;-Dan |
The response to all is "it depends on the software you use, and the options you use" (that's why tar has -p and cp has -p and -a, duh?). It's one of these questions that have no real meaning because that's not the response that your teacher wants (although it is the correct one) and is only designed so you answer what the teacher told you in the classroom, even if it's inaccurate or just plain wrong.
That's true except for the 'x' permission in 2), and in 4) assuming that you want to give details of the process in that one. Quote:
|
Quote:
If policy is, "don't answer homework" and you suspect the question is homework, simply avoid posting an answer. Without an answer, the writer will go away. Cheers, ~~~ 0;-Dan |
Quote:
Quote:
Quote:
Besides that, sometimes it's not clear if it's homework or not, and in that case explaining the situation to the OP can push him or her to give more details and show the research s/he's done up to the current moment, so we can see ourselves that's not homework, or that it's homework but that s/he's done the research and just needs a bit of guidance on very concrete matters. |
Quote:
Quote:
|
A lot of the questions can be answered by experimentation.
Create an account on your machine for another user. Save a file in /tmp and have the second user copy it back. Look at the cp options. If you have a pen drive that uses vfat32, you can copy files to it, and experiment mounting it with different "uid","gid","fmask" and "dmask" values. You can create an ntfs filesystem on a file and mount it using the 'loop' option. Also enter "help umask" in the terminal so you understand the effect it has. |
All times are GMT -5. The time now is 02:29 PM. |