Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 08-05-2008, 02:06 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 42
OS: winxp sp3 + ubuntu 8.04


Folder Permissions in Ubuntu 8.04

I was trying to delete a file recently and received this message:

"Cannot move items to trash, do you want to delete them immediately?"

When I clicked "delete immediately", it came up with an error message that wouldn't allow me too. I have never seen this before and so I ended up messing around in the permissions for the folders. This worked as far as letting me delete items, but still it would come up with an error message. I looked into changing the permissions for all folders at once through the terminal and found some references that suggested using commands such as the following:

sudo chmod 755 $1

Unfortunately, that didn't work for me so I tried adding the -r in the command and no difference. Can anyone help with this problem? Thanks in advance.
22moondune is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-05-2008, 02:27 PM   #2 (permalink)
Registered User
 
hal8000's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 229
OS: PCLinux2009/Ubuntu/XP


Re: Folder Permissions in Ubuntu 8.04

Quote:
Originally Posted by 22moondune View Post
I was trying to delete a file recently and received this message:

"Cannot move items to trash, do you want to delete them immediately?"

When I clicked "delete immediately", it came up with an error message that wouldn't allow me too. I have never seen this before and so I ended up messing around in the permissions for the folders. This worked as far as letting me delete items, but still it would come up with an error message. I looked into changing the permissions for all folders at once through the terminal and found some references that suggested using commands such as the following:

sudo chmod 755 $1

Unfortunately, that didn't work for me so I tried adding the -r in the command and no difference. Can anyone help with this problem? Thanks in advance.

From the directory containing the file or folder you want to delete post
the output of:
ls -l

(That small "l" as in "long")
File permissions in unix are more complicated than windows. Although there are only read, write and execute attributes, each file has an owner, group and other attributes. Not to mention special attribuites that can be set such as suid and guid.
For your part it is unclear what you are trying to do until you post the output of ls -l
hal8000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-05-2008, 03:33 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 42
OS: winxp sp3 + ubuntu 8.04


Re: Folder Permissions in Ubuntu 8.04

Here is the output of the ls -l command you asked me to input. I was in my username directory when I used the command. Thanks for helping.

steven@steven-desktop:~$ ls -l
total 12
drwxr-xr-x 2 steven steven 4096 2008-08-05 16:23 Desktop
drwxr-xr-x 8 steven steven 4096 2008-08-05 00:38 Downloads
drwx------ 6 steven steven 4096 2008-06-29 13:18 Ubuntu Themes


I'm not exactly sure what this means, but if you can help me set all the permissions back so I can delete items without getting prompted, that's what I really want.
22moondune is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-06-2008, 01:43 AM   #4 (permalink)
Registered User
 
hal8000's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 229
OS: PCLinux2009/Ubuntu/XP


Re: Folder Permissions in Ubuntu 8.04

Quote:
Originally Posted by 22moondune View Post
Here is the output of the ls -l command you asked me to input. I was in my username directory when I used the command. Thanks for helping.

steven@steven-desktop:~$ ls -l
total 12
drwxr-xr-x 2 steven steven 4096 2008-08-05 16:23 Desktop
drwxr-xr-x 8 steven steven 4096 2008-08-05 00:38 Downloads
drwx------ 6 steven steven 4096 2008-06-29 13:18 Ubuntu Themes


I'm not exactly sure what this means, but if you can help me set all the permissions back so I can delete items without getting prompted, that's what I really want.

The above are showing directories (folders) which you own and are in your group. You do not want to delete Desktop (unless you like reinstalling) or Dorwnloads or possibly not Ubuntu Themes.

What file were you deleting?
To delete a folder its rm -r (however this is a dangerous command for a newbie) as you are not always in the directory you think you are.

The file manager with Gnome Desktop is nautilus, and like windows explorer you can right click, delete, left click, highlight, press delete on keyboard etc.
You have typed ls -l from your home directory so your bash prompt will look like
steven@ubuntu>
(well not exactly but similar and hostname changes to whatever you set your computer name to).
Post back if you need more help, or the name of the file you want to delete.
hal8000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-06-2008, 06:36 PM   #5 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: Folder Permissions in Ubuntu 8.04

Three things to check:

1. In a text window do a "cd". This should take you to your home directory. Then do a "pwd" and see if you really are in your home directory. Your error message is indicative of being root.

2. In a text window, type "alias" and see if "rm" has been aliased to some other command. If you were trying to delete the file from GUI, I can't see alias causing a problem. If alias does cause a problem, then that's a feature that should be turned off.

3. Take a look at "dmesg" from a text line. See if the kernel reports any problem.

4. Check the premissions on the home directory "." and ".." file. Sometimes, the wrong permissions on a parent can cause problems in subdirectories.

I know when you are root in a command window, "rm" is aliased so that the prompt mode is required. That way as root you can't do a "rm -fr /"!
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:27 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85