LinuxQuestions.org
Visit Jeremy's Blog.
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 04-19-2006, 09:18 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
su - mysql; /dev/tty1 operation not permitted


When installing the standard mysql database, one starts with su - mysql
When I do that, I get the message
Code:
/dev/tty1: Operation not permitted
It however makes me user mysql and I can install the initial db (using mysql_install_db) and start the mysql-server without problems.

I've done this setup several times with Slackware 10.0 and never seen it. I don't seem to be able to find an answer with google.

Any suggestions what causes it?

Last edited by Wim Sturkenboom; 04-19-2006 at 09:22 AM.
 
Old 04-19-2006, 06:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.

The command just looks incorrect for me. ;/dev/tty1 means you try to run /dev/tty1, which is not an executable (and doesn't have +x set). That's why it fails. Which distribution/version is it? And which script?
 
Old 04-20-2006, 02:32 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Sorry about the distro; was originally in the title. Distro Slackware 10.1
You do not 100% understand what I did (my fault)
Code:
root@btd_techweb01# su - mysql
/dev/tty1: operation not permitted
root@btd_techweb01#
The device depends on the terminal I'm in (tty2, ....)

Quote:
Originally Posted by Mara
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
Just like to understand why it's moved?
The su-command is a normal command and does not have to do with software. The problem might have to do with the mysql-user account but that's still not software.

Last edited by Wim Sturkenboom; 04-20-2006 at 02:42 AM. Reason: Why is it moved?
 
Old 04-20-2006, 03:20 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The problem is biff in /etc/profile ... the device you're on is
owned by the original user, and the new users (mysql) biff doesn't
have write access for biff on it.

To get rid of the error (it's non-critical) you can a)
comment out biff in the aforementioned file or b) use
"su mysql && source ~/.bashrc" instead of "su - mysql"


Cheers,
Tink

Last edited by Tinkster; 04-20-2006 at 03:23 AM.
 
Old 04-20-2006, 05:02 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks for the explanation; as it was working I assumed that it was non-critical. Will not modify anything as this is usually a one-time thing.
 
Old 04-20-2006, 04:33 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Just like to understand why it's moved?
The su-command is a normal command and does not have to do with software. The problem might have to do with the mysql-user account but that's still not software.
Explanation: You have posted the thread to General. Not Linux-General, but General, which is not the right place for a technical, Linux-related question. That's why it was moved. I had choosen Software, because you had a software problem.
 
Old 04-21-2006, 12:25 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Original Poster
Rep: Reputation: 282Reputation: 282Reputation: 282
OK, if that was the case I understand. My mistake.
 
  


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
hdparm -d1 /dev/hda gives me "HDIO_SET_DMA failed: Operation not permitted" elluva Linux - Hardware 7 07-21-2007 04:49 AM
su - user : /dev/pts/# Operation not permitted problem buaku Slackware 4 10-16-2005 09:08 PM
/dev/pts/xx operation not permitted deb75 Slackware 0 03-25-2004 06:10 AM
/dev/pts/7: Operation not permitted kiley_rodgers Slackware 2 01-10-2004 11:23 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 06:13 PM

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

All times are GMT -5. The time now is 01:30 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
Open Source Consulting | Domain Registration