On Saturday 26 May 2007, Dale wrote: > Dan Cowsill wrote: > > Hey list, > > > > It has been a constant burden to me to have to change the file > > permissions of files I've copied so that other users can access > > them and modify them. Say I have a number of documents in the > > /root folder which the root user owns. Now I want to transfer them > > to my non-priveliged user so I can work on them... But I have to > > chown them so that is possible. > > > > It just occured to me that there must be an easier way to do things > > like this and I was wondering if you fine fellows could guide me > > down the right path. > > > > Thanks. > > If you use KDE, you can right click on the folder that contains them > and change the permissions then check the box that says to make it > apply to everything in the folder.
chmod -R chown -R (this one only works for root) > That way you can change a lot of > them at once. I also noticed a while back that if I am in Konqueror > as root and copy to my user desktop, it changes the permissions to my > regular user. I never noticed that before. Ye gods. Why are you running KDE as root ???!!!??? Dan, There's no easy way to do this. As a user you have to assign group and/or other access to the files manually. You can't chown them (only root can do that). Another alternative is to create a dir somewhere exclusively for the purpose of sharing stuff, make it owned by root, group owned by some share group. Set gid on the directory, every new file/dir copied/moved/created there will now be owned by the share group. Make sure the relevant users are members of this group: mkdir /shared-stuff chown -R root:share /shared-stuff chmod g+s /shared-stuff To set the group write permission on all these new items, either change the users' umask (ugh!) or use an acl (slightly less ugh!) alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list

