LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copying files from linux to windows (https://www.linuxquestions.org/questions/linux-newbie-8/copying-files-from-linux-to-windows-93895/)

jonnypop00 09-17-2003 03:24 PM

copying files from linux to windows
 
Hi, I've just copied a bunch of files from a linux box running redhat 6, to a windows 2000 server. The Linux box was used as a home directory for people where they could save all of there stuff, but now that I've moved it from the linux box, if I try to delete anything it says I do not have access rights. If I mount that drive on the linux box, I can log in as the root and delete them that way. My question is, is there any way to open up access rights on those files so that not only linux root user can delete them?

win32sux 09-17-2003 04:06 PM

this would allow anybody to do anything to the files in the directory while maintaining current ownership:

chmod -vR 777 YOUR_FILE_DIRECTORY

but, for example, if you want only the owner of the file and users from group "badboys" to be able to do what they wish with the files and the other groups to not be able to do anything with them...

chown -vR badboy1.badboys YOUR_FILE_DIRECTORY

chmod -vR 770 YOUR_FILE_DIRECTORY

http://www.die.net/doc/linux/man/man1/chmod.1.html
http://www.die.net/doc/linux/man/man1/chown.1.html

micxz 09-17-2003 04:32 PM

One of the good reasons to have a root user on a network.


All times are GMT -5. The time now is 04:18 AM.