Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'.
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--).
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>.
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$
<<<
[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,
[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:-$
'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$
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.