Problems saving and deletiung things as a normal uForum: HD Install Topic: Problems saving and deletiung things as a normal u started by: exerd Posted by exerd on April 01 2005,17:41
When im trying to remove a mp3song i copied from a cd into my harddrive as a normal user i get "permission denied" I have a hdinstall of dsl. What can i do to make every user have all rights? Tnx for answers /exerd Posted by exerd on April 01 2005,17:43
This is my fstab file btw# /etc/fstab: filesystem table. # # filesystem mountpoint type options dump pass /dev/hda2 / ext2 defaults,errors=remount-ro 0 1 proc /proc proc defaults 0 0 /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0 /dev/cdrom /cdrom iso9660 ro,user,noauto,unhide # partitions found by dsl #/dev/hda2 /mnt/hda2 auto noauto,users,exec 0 0 # Added by KNOPPIX /dev/hda1 none swap defaults 0 0 # Added by KNOPPIX /dev/hda3 /mnt/hda3 ext2 noauto,users,exec 0 0 Posted by mikshaw on April 01 2005,18:44
Giving every user all rights is a very, very bad idea. Permissions are set like this for good reason. Giving normal users super power enables normal users to easily destroy their system, and is a security risk from outside influences.Linux has a very simple and effective method to allow users temporary root power: su and sudo sudo <command> allows you to run a single command with root power. sudo su (or su on most systems) temporarily logs you in as root for running multiple commands. If you have a root password set, you should be asked for that password when doing one of the above. If you want to copy a file onto your harddrive as a normal user, especially a personal file like mp3, you should always copy it somewhere within your home directory, to which you should have full rights. The Linux system directories shouldn't be filled with nonessential data. Posted by exerd on April 01 2005,19:22
Thats the thing. I have copyed tyhe file to home/dsl/exerd/mp3/ and now i cant delete it. I cant delete it as su neither. I have to login as root to delet thing in there. Thanks for your answer hope you can help me.
Posted by mikshaw on April 01 2005,20:40
maybe it was copied with permissions and/or ownership intact.If the file is owned by another user then you can't delete it. If it doesn't have write permission then you can't delete it. If the directory it's in does not have executable permission for your user, you won't even be able to see it. There should be no reason it can't be deleted with "sudo rm -f /home/dsl/exerd/mp3/filename.mp3" or "sudo su" and then delete it. I'd check ownership and permissions on the file before trying anything else in a case like this. "sudo chown dsl.staff <filename>" and "sudo chmod 644 <filename>" should take care of permissions problems. 6=read/write by owner (dsl), 4=read by group (staff), 4=read by others |