Problems with permissions

jimmy9pints1
Posts: 15
Joined: Tue Dec 30, 2008 5:57 am

Problems with permissions

Postby jimmy9pints1 » Tue Jan 06, 2009 1:03 am

Hi, this problem affects both my back ups and my file sharing but if I can solve it for one I am sure the other will be fine.

My laptops run Ubuntu so I was following instructions here to set up the auto (smart) backups feature. However, when I choose the backup location its gives me the red no-go sign and says:
"The selected destination is not writtable with current permissions. The backups can not be written there."

The location I selected is:
ssh://name:password@hda/var/hda/files/backups/jam-laptop
Where I have obviously changed the name and password to the name and password I use to log into the server.

Any help appreciated.

User avatar
relrobber
Posts: 72
Joined: Wed Dec 17, 2008 10:01 pm
Location: Searcy, AR
Contact:

Re: Problems with permissions

Postby relrobber » Tue Jan 06, 2009 1:28 am

the login you use for access to the server is not necessarily the login the backup program uses to perform its operations. try setting that folder's permissions to 777, and see if that fixes the error message. if it works, but you don't want to leave the folder writeable by everyone, maybe someone can tell you what user needs access to it for backup to work.
Home HDA: Sony VAIO PCV-RX560, 1.7GHz P4, 320MB RAM

Managed HDA: 512MB RAM

jimmy9pints1
Posts: 15
Joined: Tue Dec 30, 2008 5:57 am

Re: Problems with permissions

Postby jimmy9pints1 » Wed Jan 07, 2009 10:32 pm

OK, thanks for your help. But I am still a bit stuck...sorry I did say I am a relative noob.

Currently the output of ls -l (logged in as user jam) is:

Code: Select all

drwxr-xr-x 2 jam users 4096 2008-12-24 11:45 Desktop drwxr-xr-x 2 jam users 4096 2008-12-26 22:28 Documents drwxr-xr-x 2 jam users 4096 2008-12-30 20:47 Download drwxrwxrwx 1 root root 8192 2009-01-06 10:08 Music drwxrwxrwx 2 jam users 4096 2008-12-26 22:28 Pictures drwxr-xr-x 2 jam users 4096 2008-12-26 22:28 Public drwxr-xr-x 2 jam users 4096 2008-12-26 22:28 Templates drwxr-xr-x 2 jam users 4096 2008-12-26 22:28 Videos
Where the directories Music and Pictures are highlighted in green. In the case of the Music folder this is because it is an NTFS disk mounted via fstab, as such:

Code: Select all

/dev/sdb1 /home/jam/Music ntfs-3g rw,defaults,umask=0000 0 0
And in the case of the Pictures directory it's because I have been attempting to change the permissions. For this I used commands such as:

Code: Select all

chmod o=rwx Pictures
This seems a bit insecure to me, but I wasn't sure how else I could give computers on the network full access to the Pictures directory.

By the way, on this client computer I have Music, Videos and Pictures (in the home folder) all mounted via fstab as this:

Code: Select all

//hda/Music /home/jam/Music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
And ls -l in the home directory gives this:

Code: Select all

drwxrwxrwx 1 root root 0 2009-01-06 10:08 Music drwxrwxr-x 3 500 users 0 2008-12-24 17:46 Pictures drwxrwxr-x 2 500 users 0 2008-12-24 11:45 Videos


I have tried changing permissions from the client and can't (obviously perhaps?).

Again, any help appreciated.
Cheers, James.

User avatar
relrobber
Posts: 72
Joined: Wed Dec 17, 2008 10:01 pm
Location: Searcy, AR
Contact:

Re: Problems with permissions

Postby relrobber » Thu Jan 08, 2009 6:03 pm

what about the destination directory for your backups?
Home HDA: Sony VAIO PCV-RX560, 1.7GHz P4, 320MB RAM

Managed HDA: 512MB RAM

jimmy9pints1
Posts: 15
Joined: Tue Dec 30, 2008 5:57 am

Re: Problems with permissions

Postby jimmy9pints1 » Thu Jan 08, 2009 10:58 pm

Well since you last post relrobber (and thank you for your ongoing help by the way) I have changed the permissions of this folder. ls -l now gives:


I changed the permission by:

Code: Select all

su -- chmod -R u=rw backups
I logged in as root because being logged in as user 'jam' it wouldn't let me change permissions. Now if I use the root name and password for the simple backup software on my client machine it works. But I am not very happy with this set up. Not that I know anything but it seems risky to me.

What are the security implications of this?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Problems with permissions

Postby cpg » Thu Jan 08, 2009 11:56 pm

i am not following this thread in detail, however, i would suggest you avoid at all costs working as root.

change the ownership or your files in question recursively to jam:users, like this:

Code: Select all

chown -R jam:users backups
then try to use the jam user in the tool to login and do its thing.

HTH
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
relrobber
Posts: 72
Joined: Wed Dec 17, 2008 10:01 pm
Location: Searcy, AR
Contact:

Re: Problems with permissions

Postby relrobber » Sun Jan 11, 2009 8:57 pm

i agree w/ cpg that it seems that your backups folder is owned by root, and that you need to chown it to be owned by user jam.
Home HDA: Sony VAIO PCV-RX560, 1.7GHz P4, 320MB RAM

Managed HDA: 512MB RAM

Who is online

Users browsing this forum: No registered users and 23 guests