LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-19-2010, 06:17 AM   #1
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Rep: Reputation: 0
Linpus Lite - Change File/Folder Permissions


I own an Acer Aspire One which has Linpus Lite installed. Last night I attempted to delete a couple of files only to find they are read only and that I cannot change the permissions by right clicking and changing the drop down menu from read only.

These aren't protected files or anything, they are files I've downloaded or created myself (one using the onboard web cam to test it).

I attempted to play with Terminal for a bit but as a newbie I got easily lost, not like I can fall back on command prompt knowledge from Windows!

I think it's somehow connected with the user which accesses these docs or tries to change the permissions. I also tried with an su- which meant I was using Terminal as root, however, I wasn't sure how I could then set the permissions for a particular file/folder within the file system.

Thanks in advance!
 
Old 08-19-2010, 10:17 AM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,699

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
You can see the permissions with ls -l command. This command will show permissions for user, group and other as well as who the user/owner is and which group has what access. You can remove files from the command line with the rm -i command (the i will prompt to ask if you want to remove). Need to be careful with this because when removed, it is removed and no going back.

I would suggest you do a google search for linux commands or more specifically the rm (remove) and chmod (for changing permissions) chown (change ownership) and chgrp (change group). There are many sites with detailed information available.
 
Old 08-19-2010, 10:40 AM   #3
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I was in a specific folder and opened Terminal, from here I attempted to change these permissions using chmod, however, this didn't work. I suspect this is because Terminal was not logged on as root.

When I used su- to run as root (I guess like Elevated command prompt in Vista/Win7) I think it would have worked but I'm not sure how I could navigate to the same directory I was in - When I tried the same commands it didn't recognise the filename.

How do I go about moving around in Terminal? - i.e. cd\ cd directory name etc in cmd prompt?

Thanks!
 
Old 08-19-2010, 04:40 PM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,216

Rep: Reputation: 239Reputation: 239Reputation: 239
Quick guide to get you started:

cd <directory name> moves you to directory <directory name>

cd ~ moves you to the current user's home directory

PS1="\w$ " changes the prompt to the full path name of the current directory followed by a dollar sign followed by a space. Very useful for figuring out where you are in the filesystem.

sudo <command> execute <command> as the root user (doesn't change your location)
 
Old 08-20-2010, 01:27 AM   #5
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
I think the file system may be the issue here.

Code:
[root@localhost Videos]# chmod a+w video_0000.mpg
chmod: changing permissions of `video_0000.mpg': Read-only file system
so i tried
Code:
[root@localhost Videos]# cat /proc/mounts
which produced a few lines, critically (i think) this one:
Code:
/dev/mmcblk0p1 /media/disk vfat ro,nosuid,nodev,uid=500,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=winnt,utf8 0 0
The ro after the vfat suggests to me it's a read only file system so even changing properties as root to write will fail.

I tried this, but i think it's incomplete as i got sort of help file text:
Code:
[root@localhost Videos]# mount -o remount,rw/
any help please guys?! I think I'm making slow progress lol

cheers!
 
Old 08-20-2010, 01:50 AM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by osaddict View Post
Code:
[root@localhost Videos]# mount -o remount,rw/
You should specify / as separate argument.
Code:
mount -o remount,rw /
Edit: It should not be the root filesystem.
Code:
mount -o remount,rw /media/disk

Last edited by konsolebox; 08-20-2010 at 01:52 AM.
 
Old 09-01-2010, 08:51 AM   #7
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanls konsolebox, I've yet to try this. Hopefully this evening when I get home
 
Old 09-01-2010, 02:36 PM   #8
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
I went to the videos directory, opened terminal...

Quote:
su
then I entered my password.

I tried:
Quote:
mount -o remount, rw /media/disk
all on the one line. It didn't complain. I went to my directory and tried to change the permissions of a file within. It didn't allow me. Back in terminal:

Quote:
chmod a+w video_0000.mpg
When still logged in as root. This produced the same error as before:

Quote:
chmod: changing permissions of `video_0000.mpg': Read-only file system
Starting to get annoying - logically it should work. I must be missing something. Any clues anyone?

Thanks.
 
Old 09-02-2010, 01:12 AM   #9
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,245
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
Have you tried the disk on other systems?.. Like just know if it's still capable of writing data. Maybe it's the drive that already has the problem. Btw the filesystem in the drive is not NTFS right?
 
Old 09-02-2010, 01:23 AM   #10
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
As I have said many times, Linpus Lite is a crippleware distro. Comparing it to something more complete like Fedora, Ubuntu or Mint is like comparing Windows 7 Starter to Windows 7 Ultimate!

You don't get the full effect of Linux with Linpus, I'm sorry. There's no display manager, so there's no way of logging out and in again as root. Acer's application launcher is burned into the desktop, which means there's no option to change the wallpaper (Well, doesn't that sound familiar!). The package manager is hidden: you literally have to type "sudo system-config-packages" in a terminal window. And even if you attempt to use it to change the DE, you get enough errors resolving dependencies that it doesn't really matter.
 
Old 09-02-2010, 02:38 PM   #11
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
I got that impression Kenny. I'm in no way attached to it what so ever! - How would I go about installing a new, better, more supported distribution? - I do have a portable CD drive which works with this laptop - would I be able to try a 'live cd' of a distro?
 
Old 09-02-2010, 02:48 PM   #12
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
This: http://www.ubuntu.com/netbook for example looks ideal - a decent distro and intended for netbooks.

I'm aware of how I'd do this on a windows PC - boot from cd, Win GUI gives you the option of where to install, how to format the existing hdd, etc. Is this the same with this Ubuntu Netbook Remix?

I'm fully aware of the need to backup documents/media etc - that's not a major headache.
 
Old 09-02-2010, 04:32 PM   #13
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Quote:
Originally Posted by osaddict View Post
I got that impression Kenny. I'm in no way attached to it what so ever! - How would I go about installing a new, better, more supported distribution? - I do have a portable CD drive which works with this laptop - would I be able to try a 'live cd' of a distro?
Do you also have a USB flash drive you can use?
 
Old 09-03-2010, 01:08 AM   #14
osaddict
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
I do but pen drives often seem to be the problem (only root can mount etc.)

However, I burnt Ubuntu netbook remix to a cd and gave it a try last night. I liked it

1. Is that a suitable distro? (I thought it sounded ideal!)
2. If I had backed up my docs is it a straight forward click n go gui install? - disposing of linpus ?
3. I assume installing stuff like VLC etc is a doddle and done in a similar way to linpus? - some kind of package manager where you add/remove bits etc?

Cheers
 
Old 09-03-2010, 03:14 AM   #15
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
When you start the installation and get to the partitioning stage, select "Edit partitions manually (advanced)" or the like. The partitioner will launch. Select the partition you had Linpus on (will register as Fedora 8), and for the file system, select the same as it was and DO NOT FORMAT!!! Ubuntu will give you a warning but will still allow you to continue. Create your user, and after that, the installation will prompt you with checkboxes to migrate documents and settings from existing user accounts (such as the one Linpus created). Check the boxes, and then select "Next". Ubuntu will now install and, on top of that, migrate your docs and settings over to the new installation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linpus Linux Lite - Thunar File Manager plugins - need support lukster91 Fedora 2 04-19-2009 07:11 AM
Linpus Lite and Linpus 9.6 pane sizes outside viewable screen area Dave Wakefield Linux - Software 0 04-02-2009 08:14 AM
Linpus lite grub/booting linpus to a terminal Only_he_stands_here Linux - Laptop and Netbook 1 11-15-2008 07:51 PM
How can I change the access permissions of a file or folder? royeo Linux - Newbie 1 07-25-2006 03:36 PM
Change folder permissions eggoz Linux - Newbie 2 03-17-2003 01:35 AM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration