LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 04-19-2006, 08:18 AM   #1
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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 08:22 AM.
 
Old 04-19-2006, 05:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
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, 01:32 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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 01:42 AM. Reason: Why is it moved?
 
Old 04-20-2006, 02:20 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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 02:23 AM.
 
Old 04-20-2006, 04:02 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 03:33 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
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-20-2006, 11:25 PM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:49 AM
su - user : /dev/pts/# Operation not permitted problem buaku Slackware 4 10-16-2005 08:08 PM
/dev/pts/xx operation not permitted deb75 Slackware 0 03-25-2004 05:10 AM
/dev/pts/7: Operation not permitted kiley_rodgers Slackware 2 01-10-2004 10:23 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration