LinuxQuestions.org
Help answer threads with 0 replies.
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, 11:55 AM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,121

Rep: Reputation: 46
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, 03: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, 04:27 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,210

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
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, 04:52 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,121

Original Poster
Rep: Reputation: 46
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 05:24 PM
Using rsync for local server backup. Some issues. enygma Linux - Networking 0 02-03-2005 02:46 PM
Giving permission to /backup partition Micro420 Linux - Newbie 2 03-22-2004 07:08 PM
squid issues or what? - LAN backup server setup problem htm Linux - Networking 2 03-18-2004 10:10 AM
permission issues. neuroX Linux - Software 7 02-17-2004 07:40 AM

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

All times are GMT -5. The time now is 01:03 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration