LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2006, 01:04 PM   #1
limeylew
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Mepis 3.3.2 Ubuntu 5.10
Posts: 60

Rep: Reputation: 15
Unlocking folder in Dapper Ubuntu


I have Dapper 6.06.1 and have a 'locked' folder on my desktop.

Its just a bunch of photos that I transferred from XP to Mepis and then to Ubuntu on a memory stick but I would appreciate it if someone would tell me (or point me to a link) how to get rid of the 'padlock'.

Thanks.

Lewis.

*****
 
Old 10-13-2006, 01:24 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think that means you don't have proper access (I don't use Gnome desktop). You can probably chmod it from the command line or right click on it and see if you can change the permissions to something you can read (like 644 rw-r--r--).
 
Old 10-13-2006, 01:25 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by limeylew
I have Dapper 6.06.1 and have a 'locked' folder on my desktop.

Its just a bunch of photos that I transferred from XP to Mepis and then to Ubuntu on a memory stick but I would appreciate it if someone would tell me (or point me to a link) how to get rid of the 'padlock'.

Thanks.

Lewis.

*****
Open a terminal and cd to the Desktop directory. Then "ls -l" to see the ownership and permissions of the folder in question. You probably can fix the issue by simply making yourself the owner:
Assuming you have not activated the root account in Ubuntu, you would do something like this:

sudo chown -R <yourname> <foldername>

The translation of this gibberish is roughly as follows: Operating with super-user privileges (sudo), please change the owner (chown) for the folder named <foldername>, and all of its contents (-R), to <username>.

You may also need to change permissions...

For more detail--do these (in the terminal)

man chown
man chmod
 
Old 10-13-2006, 03:51 PM   #4
limeylew
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Mepis 3.3.2 Ubuntu 5.10
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
Open a terminal and cd to the Desktop directory. Then "ls -l" to see the ownership and permissions of the folder in question. You probably can fix the issue by simply making yourself the owner:
Assuming you have not activated the root account in Ubuntu, you would do something like this:

sudo chown -R <yourname> <foldername>

The translation of this gibberish is roughly as follows: Operating with super-user privileges (sudo), please change the owner (chown) for the folder named <foldername>, and all of its contents (-R), to <username>.

You may also need to change permissions...

For more detail--do these (in the terminal)

man chown
man chmod

Thanks for your help here, I appreciate it.

I am having trouble executing these commands and it seems to be because the folder is named My Pictures. Although I have tried with using quotation marks, apostrophes and also with a hyphen in between, I still get a message 'no such file'.

>>>
yuio@yuio-desktop:~$ cd desktop
yuio@yuio-desktop:~$ cd Desktop
yuio@yuio-desktop:~/Desktop$ sudo chown -R yuio My Pictures
chown: cannot access `My': No such file or directory
chown: cannot access `Pictures': No such file or directory
yuio@yuio-desktop:~/Desktop$
<<<

I MUST be doing something wrong, right?

Kind regards.

Lewis.

*****
 
Old 10-13-2006, 05:28 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Here's a little demo:

Code:
[root@mherring-w2k mherring]# mkdir play
[root@mherring-w2k mherring]# cd play
[root@mherring-w2k play]# ls
[root@mherring-w2k play]# mkdir "abc def"
[root@mherring-w2k play]# ls
abc def
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 root root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]# chown -R mherring "abc def"
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 mherring root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]#
I was able to make a directory named "abc def" and then change its owner using quotes.

This also works:

Code:
[root@mherring-w2k play]# chown -R root abc\ def
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 root root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]#
Here, I changed it again using "\" to escape the space in the file name.

Another trick is simply to use the wild card--as long as it is unique, you can access the directory of file name with the 1st few letters + "*". Thus, In my example,
Code:
chown -R name abc*
would also work
 
Old 10-13-2006, 06:55 PM   #6
limeylew
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Mepis 3.3.2 Ubuntu 5.10
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
Here's a little demo:

Code:
[root@mherring-w2k mherring]# mkdir play
[root@mherring-w2k mherring]# cd play
[root@mherring-w2k play]# ls
[root@mherring-w2k play]# mkdir "abc def"
[root@mherring-w2k play]# ls
abc def
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 root root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]# chown -R mherring "abc def"
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 mherring root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]#
I was able to make a directory named "abc def" and then change its owner using quotes.

This also works:

Code:
[root@mherring-w2k play]# chown -R root abc\ def
[root@mherring-w2k play]# ls -l
total 4
drwxr-xr-x  2 root root 4096 Oct 13 15:14 abc def
[root@mherring-w2k play]#
Here, I changed it again using "\" to escape the space in the file name.

Another trick is simply to use the wild card--as long as it is unique, you can access the directory of file name with the 1st few letters + "*". Thus, In my example,
Code:
chown -R name abc*
would also work

Thanks for all your efforts but I'm still completely confused and cannot get anything to work.

I'm seeing the folder in my Desktop, not my Home folder but when I open Terminal, it opens as:- yuio@yuio - desktop:-$ whereas I 'think' that should be yuio@yuio:-$

If so I've screwed up somewhere.

Kind regards.

Lewis.

*****
 
Old 10-15-2006, 11:11 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I
Quote:
'm seeing the folder in my Desktop, not my Home folder but when I open Terminal, it opens as:- yuio@yuio - desktop:-$ whereas I 'think' that should be yuio@yuio:-$
Now I am confused...
What you describe above is simply the prompt that normally appears in a CLI (terminal).

Here is a line from you original post:
Quote:
yuio@yuio-desktop:~$ cd desktop
This means that you are running as user "yuio" on a system named "yuio-desktop", and that you are in your home folder (~) (trying to cd to desktop)

It appears that--in you more recent post, you may have a typo--ie the prompt should look more like the one in your original post.

When you cd to the Desktop, you should then see:
yuio@yuio-desktop:~/Desktop$
 
Old 10-16-2006, 12:29 AM   #8
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by limeylew
I have Dapper 6.06.1 and have a 'locked' folder on my desktop.

Its just a bunch of photos that I transferred from XP to Mepis and then to Ubuntu on a memory stick but I would appreciate it if someone would tell me (or point me to a link) how to get rid of the 'padlock'.

Thanks.

Lewis.

*****

I'm assuming you've tried Right Click/Properties/Permissions tab. Check all the boxes. I've unlocked a couple files like that.

IGF
 
Old 10-16-2006, 05:25 AM   #9
limeylew
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Mepis 3.3.2 Ubuntu 5.10
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IndyGunFreak
I'm assuming you've tried Right Click/Properties/Permissions tab. Check all the boxes. I've unlocked a couple files like that.

IGF

WOW!! That was too easy. :-)

It worked like a charm.

Many thanks.

Lewis.

*****
 
Old 10-16-2006, 05:32 AM   #10
limeylew
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Mepis 3.3.2 Ubuntu 5.10
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
I

Now I am confused...
What you describe above is simply the prompt that normally appears in a CLI (terminal).

Here is a line from you original post:

This means that you are running as user "yuio" on a system named "yuio-desktop", and that you are in your home folder (~) (trying to cd to desktop)

It appears that--in you more recent post, you may have a typo--ie the prompt should look more like the one in your original post.

When you cd to the Desktop, you should then see:
yuio@yuio-desktop:~/Desktop$
You are correct. Thanks for pointing that out.

Now its making more sense to me.

Kind regards.

Lewis.

*****
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WoW, Ubuntu Dapper Problems ty13 Linux - Games 3 10-15-2006 10:43 AM
Speed - Ubuntu Dapper vs. SUSE 10.1 JOHN-FM Linux - Software 2 08-29-2006 07:16 PM
Ubuntu Dapper BETA to Official Dapper? morrolan Ubuntu 4 05-26-2006 03:47 PM
How to install Ubuntu Dapper from Fedora? JBull Linux - Newbie 3 04-12-2006 09:52 PM
Ubuntu Dapper - bcm43xx problem asmweb Linux - Wireless Networking 1 03-06-2006 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration