How to change folder permissions and ownership

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

How to change folder permissions and ownership

Postby gmanm1 on Fri Jan 25, 2008 10:57 am

I have tried all the chmod and chown I am getting nowhere. I finally got networking to work , but now I don't have permissions to view my own files. How do I do it with mint . Please someone tell me where ( I have tried as root) and exactly how to do this. I am tired of waisting so much time.

Thanks,
gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Linux Mint is funded by ads and donations.
 

Re: How to change folder permissions and ownership

Postby Fred on Fri Jan 25, 2008 11:11 am

A couple, or more, questions:

1. Where are the files you are trying to access? In your home directory or somewhere else? If somewhere else, where?

2. What kind of installation do you have? How many operating systems do you have installed and what are they?

3. How many hard drives do you have in the system and how are they partitioned and formatted?

4. Did this problem just start out of the blue or did it start when you installed an operating system or some other event?

This should get us started. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Sat Jan 26, 2008 1:58 pm

I have only mint 4.0 installed. The folders are usb drives and the files in them. I can view them from the other computer but can't open them to view files. I get error you do not have permissions to view. My computer has 2 hard drives. This has been a problem since I installed mint.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby deadguy on Sat Jan 26, 2008 2:38 pm

they are external usb hard drives??

are they formatted fat32 or ntfs??

are you using mint disk????
User avatar
deadguy
Level 5
Level 5
 
Posts: 710
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: How to change folder permissions and ownership

Postby BakUp on Sat Jan 26, 2008 4:17 pm

You could try this in a terminal:
Code: Select all
sudo gksudo nautilus

That will bring up the nautilus root mode file manager.
Then go to your mounted USB > right click > Properties > permission > there you should be able to set the permission to_your_user_name.
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Sun Jan 27, 2008 4:25 pm

One of them is nts and the other is fat.
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby gmanm1 on Sun Jan 27, 2008 4:28 pm

I will try what you suggest BakUp and let you know what happens. I appreciate the responses.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby gmanm1 on Sun Jan 27, 2008 4:52 pm

I tried Nautilus but when I try to change the group(I am listed as owner , group is listed as root) it tells me I don't have permissions to change. This is driving me crazy along with the fact that the HP media drive will not mount now since I removed it to use with another computer.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby BakUp on Sun Jan 27, 2008 4:59 pm

gmanm1 wrote:I tried Nautilus but when I try to change the group(I am listed as owner , group is listed as root) it tells me I don't have permissions to change. This is driving me crazy along with the fact that the HP media drive will not mount now since I removed it to use with another computer.gmanm1


When you view group as root, there should be a pull down option there to change it, look around.........
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby deadguy on Sun Jan 27, 2008 5:11 pm

do you have mint disk set to mount ntfs and fat32 partitions?
it allows read and write access for owner(root), group(user) and others.
(that's how mint disk set up my external fat32 drive anyway.)
User avatar
deadguy
Level 5
Level 5
 
Posts: 710
Joined: Wed Aug 15, 2007 9:41 pm
Location: Illinois USA

Re: How to change folder permissions and ownership

Postby BakUp on Sun Jan 27, 2008 5:15 pm

Does nautilus show "root-file browser" at the top ? It should !

Also deadguy has good point in his post.
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Tue Jan 29, 2008 9:11 am

Sorry but working and trying to get this mess ironed out is keeping me busy. I reinstalled mint and now my drives are mounting again. I am afraid to remove them . Do I need to unmount them before removing so they will work the next time? I know the drop down box and options you are referring to. It will not let me change anything. I am logged in as root , I have tried it as me , I don't know what to do. I can only watch video and browse the internet with this computer , can't get much else to work. Always goes back to the default and tells me I don't have permissions to change it.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby BakUp on Tue Jan 29, 2008 11:07 am

gmanm1 wrote:I have tried all the chmod and chown I am getting nowhere.

Ok, If you have used these commands in a terminal then nothing new to tell you about those commands.

But I have one thing left that always works for me, I didn't mention it before because it involves installing from the package manager Synaptic. It is called Krusader, a dual pane file manager:

First, install Krusader using the package manager from the Mint Menu

After it is installed, open your Mint menu, go to > applications > accessories > krusader > tools > start root mode krusader > sign in using your administrator password >

Then dig your way into the folder you want to change permission, right click that folder, choose the permission tab, there you can change the permission to your user name, before you exit, check the box at the bottom to change permission also on all subdirectories and files.

Check out a similar thread here:
http://linuxmint.com/forum/viewtopic.php?f=90&t=7375
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Wed Jan 30, 2008 12:30 pm

I don't have an amin account. Is that the problem. I have me and root. I opened in krusader but says it is not a file but a folder. This is ridiculous.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby BakUp on Wed Jan 30, 2008 4:23 pm

gmanm1 wrote:I don't have an amin account. Is that the problem. I have me and root. I opened in krusader but says it is not a file but a folder. This is ridiculous.
gmanm1



I am very sorry you are having this problem.

Open the Mint menu > administration > Users and Groups >
highlite your user name > choose properties > user privileges

There you can choose your options, be sure that administer the systems is checked, then while you are in there check or uncheck any other options that you are interested in.

wishing you the best gmanm1,
BakUp
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby BakUp on Wed Jan 30, 2008 5:07 pm

gmanm1 wrote:I have tried all the chmod and chown

When you used these commands, did you enter "sudo" ahead of the command ?

If you did not enter sudo ahead of your commands, then that is one problem unless you were in a root terminal.

If you did enter sudo ahead of the commands but was not asked for a password, then you are not in the sudoers file:
https://help.ubuntu.com/community/RootSudo
http://www.psychocats.net/ubuntu/sudo
http://en.wikipedia.org/wiki/Sudo

You would always be asked for your administrator password when opening things such as:
- root nautilus
- Krusader root mode
- synaptic package manager
- terminal commands that require a sudo password

These are just a few examples that would require having a administrator password.
I am thinking more and more this may be your problem.

At install time you were presented with entering a system administrator password, which would be you, the user. Maybe you missed that option, just my wild guess though.

Does any of this make sense ? Let us know if this may be the problem.....
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Thu Jan 31, 2008 12:36 am

Yes I have been root I have been me it doesn't matter what I try I cannot change it. I have tried commands that I have looked for on google. I get can't find file or folder. This is a nightmare. There are other things I would like to work on with OS but I can't get beyond this. Somebody has to know a configuration file or something that will change this. I could share both of these drives themselves with windows , there has to be a way to do it here. The one drive is WD COMBOJ . This is how it is listed in my computer. I am owner but root is group. I have tried to share it but group says no access. I have opened with nautilus and when I change group to me it goes right back to root right in front of me and tells me I do not have permission to change this. What command should I be typing to change this and from where.

gmanm1
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Re: How to change folder permissions and ownership

Postby BakUp on Thu Jan 31, 2008 1:27 am

gmanm1 wrote: What command should I be typing to change this and from where.

To find out your USB device, run this command in a terminal;
Code: Select all
sudo fdisk -l


This command should change permission:
Code: Select all
sudo chown gmanm1:gmanm1 /media/****


(**** fill in whatever your device is using fdisk above, should be something similar to "sdc1")
My Linux Distros:
sidux - Parsix - DreamLinux - Mint
User avatar
BakUp
Level 4
Level 4
 
Posts: 200
Joined: Sun Sep 23, 2007 9:20 am
Location: Minnesota USA

Re: How to change folder permissions and ownership

Postby gmanm1 on Tue Feb 19, 2008 11:16 am

Thank everyone of you for the replies. I had to reinstall windows to get some things done. I am going to install mint again in a dual boot configuration until I learn more about these commands. That is the only issue I really had with it and hopefully when I reinstall I can get it to work for me using the advice posted here.

gmanm1 :D
gmanm1
Level 1
Level 1
 
Posts: 18
Joined: Thu Dec 06, 2007 9:13 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Celtae, Google Adsense [Bot] and 33 guests