LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   backup server - permission issues (https://www.linuxquestions.org/questions/linux-software-2/backup-server-permission-issues-419743/)

Red Squirrel 02-26-2006 10:55 AM

backup server - permission issues
 
I have a backup server that grabs files via samba off the other server and workstations. The problem is, if the permissions are not global, but to a specific user (ex: mysql) the files wont backup. Since both servers have the same root password, is there a way to gain full root access through samba so I dont get any permission denied issues? I want to do this without having to change permissions on the server being backed up.

imemyself 02-26-2006 02:23 PM

You might try putting an entry in your smbusers files that maps root to a Windows username. So, for example, to have the root account accessible through administrators, add
Code:

root=Administrator

haertig 02-26-2006 03:27 PM

Quote:

Originally Posted by Red Squirrel
Since both servers have the same root password...

If they're both Linux/Unix servers, why are you using SAMBA?

For Windows boxes, before backing them up I mount their shares using fstab entries like this:
Code:

//192.168.0.53/c  /mnt/livingroom/c  smbfs  noauto,umask=0000,credentials=/etc/cred  0 0
That umask is a little wide open for just a backup, but this is a generic fstab entry that I use to mount things for users to write as well. That share itself is about as wide open as you can get!

And my /etc/cred file for the above mount looks like this:
Code:

#
# /etc/cred
#

# Credentials to mount Windows shares via SAMBA

username = administrator
password = the_administrator_password

Again, pretty wide open credentials there, but this is on my home LAN and "I know what I'm doing (tm)"! Software firewalls on each computer, strong passwords, and a rules-based router keep things confined to the LAN.

Red Squirrel 02-26-2006 03:52 PM

Yeah I mount as I need. I have a script and all the parameters are passed to it depending on which drive is in the tray, it mounts, runs the backup, goes to next job etc...

For mapping the administrator account as root, I do that on the source server?


All times are GMT -5. The time now is 02:44 PM.