LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2006, 10:55 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,328

Rep: Reputation: 54
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.
 
Old 02-26-2006, 02:23 PM   #2
imemyself
Member
 
Registered: Feb 2004
Location: Wichita, KS
Distribution: CentOS 4, SuSE 10, Tiger
Posts: 110

Rep: Reputation: 15
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
 
Old 02-26-2006, 03:27 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
 
Old 02-26-2006, 03:52 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,328

Original Poster
Rep: Reputation: 54
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?
 
  


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
Permission Issues turbo_acura Linux - Software 3 02-20-2006 04:24 PM
Using rsync for local server backup. Some issues. enygma Linux - Networking 0 02-03-2005 01:46 PM
Giving permission to /backup partition Micro420 Linux - Newbie 2 03-22-2004 06:08 PM
squid issues or what? - LAN backup server setup problem htm Linux - Networking 2 03-18-2004 09:10 AM
permission issues. neuroX Linux - Software 7 02-17-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration