Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:50:21+00:00 2026-06-16T05:50:21+00:00

I am DBA of a Sybase ASE database server on Linux, with a database

  • 0

I am DBA of a Sybase ASE database server on Linux, with a database that I need to backup every night.
The idea is to write a cronjob and run it from user “sybase”. But this means I will have a script like this:

isql -Usa -Ppassword_of_sa -SMYSERVER -DMYDATABASE -i/home/sybase/backup.sh

This means I will have the password of sa in clear text inside a script in /home/sybase; in other words, whoever can login in the sybase account can read the sa password.
Should I accept this, or is there a safer way?
Side question: can I change the password of user sybase? Can there be issues if I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:50:23+00:00Added an answer on June 16, 2026 at 5:50 am

    No, you should not accept this. One option is to create a new user, and assign the ‘oper’ role to that user. The ‘oper’ role allows the user to dump and load databases, as well as transaction logs.

    Another option is to use a shell script along with redirects to shield the password from the process list. That would look something like this:

    #/bin/sh
    
    #Set Your Sybase ENV
    . $SYBASE/$SYBASE.sh
    
    SAPASSWD=password_of_sa
    
    #Put your .sql code after the password, and before the second ENDSQL
    isql -Usa -SMYDATABASE << ENDSQL
    ${SAPASSWD}
    
    dump database MY_DATABASE to dump....
    go
    
    ENDSQL
    

    For your second question, you can absolutley change the ‘sa’ password, and as long as you don’t have any hard coded references to it in other places.

    On a side note, I would rename your backup file to backup.sql. Using .sh implies that it’s a shell script, and could cause confustion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a SQL Server DBA and have a database that I would like
I am a SQL Server DBA for a company that sells an ASP.NET MVC3
My DBA just lost some development work that he did on our development database.
I'm an Oracle DBA that's been asked to do some work on SQL Server
just now the dba let me connect to the database using Sql Server Management
There are Database Administrators (DBA) and Unix|Windows System Administrators. There are likely soon to
Assume your connection from your web server to your DBA server is extremely slow,
A DBA that my company hired to troubleshoot deadlock issues just told me that
I am not a DBA; I'm the primary developer of an enterprise database based
My local friendly DBA does not like the idea of allowing profiling on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.