Author Topic: Adding permission to a user.  (Read 555 times)

Offline sixthwheel

  • Hero Member
  • *****
  • Posts: 583
  • Location: Not Windows
Adding permission to a user.
« on: May 17, 2010, 11:36:24 AM »
I added my wife as a user on the same computer. How do I give her permission (ha-ha, usually she's the one giving permissions around here) ;D ;D to access the Pictures folder and it's contents.
My Rottweiler is smarter then your  honor student


Offline chilly

  • Hero Member
  • *****
  • Posts: 1771
Re: Adding permission to a user.
« Reply #1 on: May 17, 2010, 11:40:28 AM »
Right click on pictures folder,go down to properties and click permissions and modify
« Last Edit: May 17, 2010, 11:50:10 AM by chilly »
Being second is to be the first of the ones who lose.
Ayrton Senna

Offline sixthwheel

  • Hero Member
  • *****
  • Posts: 583
  • Location: Not Windows
Re: Adding permission to a user.
« Reply #2 on: May 17, 2010, 12:11:54 PM »
Thanks Chilli, it's not working.
I do that , then I log in as Mary, and can't see the contents of the folder.
My Rottweiler is smarter then your  honor student


Online muungwana

  • Hero Member
  • *****
  • Posts: 6240
Re: Adding permission to a user.
« Reply #3 on: May 17, 2010, 12:28:00 PM »
if permissions are set correctly, she wont and shouldnt be able to access your home directory so the pictures folder should be out of our home directory.

The proper way to handle this is to create dedicated folder like "/mnt/share" and put all shared contents there. YOu can give the folder permissions of "777" and everybody will be able to access it, this simplifies things but it adds a bit of a security hole.

The proper way is to create a secured shared folder and give its ownership to "root:share" with "774" permissions and then add you and your wife accounts to group "share".

you can also set the folder to default all created contents to group "share" and you wont hit permission issues

This could be a good opportunity to find out how good you are with linux permissions
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline chilly

  • Hero Member
  • *****
  • Posts: 1771
Re: Adding permission to a user.
« Reply #4 on: May 17, 2010, 12:30:59 PM »
Just added a user,then i changed permissions,tried changing permissions as root and you are right,new user cannot see folder,must be some other way to do it,sorry i could not help :-[
Being second is to be the first of the ones who lose.
Ayrton Senna

Offline sixthwheel

  • Hero Member
  • *****
  • Posts: 583
  • Location: Not Windows
Re: Adding permission to a user.
« Reply #5 on: May 17, 2010, 12:40:32 PM »
Just added a user,then i changed permissions,tried changing permissions as root and you are right,new user cannot see folder,must be some other way to do it,sorry i could not help :-[
No problem chilly, I'll try muungwana's suggestion.
My Rottweiler is smarter then your  honor student


Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15304
  • ┌∩┐(◕_◕)┌∩┐
Re: Adding permission to a user.
« Reply #6 on: May 17, 2010, 01:20:55 PM »
Did you get your wifes permission to post this question?  ;D
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline growbag

  • Full Member
  • ***
  • Posts: 90
Re: Adding permission to a user.
« Reply #7 on: May 17, 2010, 02:16:08 PM »
I would create a link in her home folder, or desktop to your pics folder.

Code: [Select]
chmod -R 770 ~/Pictures # Makes ALL files and sub-directories in Pictures read/writeable to user and group
sudo ln -s ~/Pictures /home/mywife/Hubbies-Pics # Make a link to my pics folder in my wife's home folder
groups # Show a list of all the groups I am a member of, [b]mygroupname[/b] will be the first one, just to make sure
sudo groupmems --group mygroupname --add mywifesusername # Add my wife's username to my group

Of course you will have to change the above info to suit, but that should make the folder available and read/write to her.

You could make it simpler by chmodding ~/Pictures to 777 and skipping the groups stuff, but that would make it read/write to everyone, although it shouldn't really matter if your home folder is set to 700 as nobody else (apart from root) will be able to enter your home folder unless you give them the link.
desktop - ASUS M4A79XTD Evo, PhenomII X2-550, 4gigs DDR3, nVidia GTX260.

laptop - Alienware m17x, i7, 6gigs DDR3, single MXM type IIIb ATI 4870.