Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Problems saving and deletiung things as a normal u< Next Oldest | Next Newest >
exerd Offline





Group: Members
Posts: 26
Joined: Oct. 2004
Posted: April 01 2005,17:41 QUOTE

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
Back to top
Profile PM 
exerd Offline





Group: Members
Posts: 26
Joined: Oct. 2004
Posted: April 01 2005,17:43 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 01 2005,18:44 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
exerd Offline





Group: Members
Posts: 26
Joined: Oct. 2004
Posted: April 01 2005,19:22 QUOTE

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.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 01 2005,20:40 QUOTE

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


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
4 replies since April 01 2005,17:41 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Problems saving and deletiung things as a normal u

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code