Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys, I get some troubles when trying to:
1. login as root in graphic mode (x windows). A message box "root login is not allowed" appeared. What should I do?
2. My flashdisk is not detected. (Adata PD2 /Myflash)
3. All device are read only. I've try 'chmod 777 /mnt/hda1'. But it's failed
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Hi Griefond, Welcome to lq. First, you don't need or want to run the gui as root, you would be better served to create a user account and su to root for tasks that require it. KDE even warns against this here.
If you've skipped adding a user account during installation try
Code:
man useradd
to see about creating one.
Second, do you mean a usb drive when you say flashdisk? If so, have a look with fdisk.
Code:
fdisk -l
You'll likely be looking for something like /dev/sda.
Third, Once you get the first two issues worked out you shouldn't have any problems with device permissions unless you've messed them up with chmod. There is a great guide that will help you get through the learning curve here.
Thank you for your answers, Peacedog.
It's seems reasonable why we don't need to login as root in KDE
But I still don't understand how to use KDE su.
When I try to press alt+F2, I don't get anything except black screen with console mode...
Altough I turn into 'root' in console mode, Still I can't use this command: cp /home/music/*.mp3 /mnt/sda1
(My USB flashdisk is mounted in mnt/sda1)
What should I do?
NB: I'm sorry, I'm not a good english speaker,... that's why my threads looks 'strange'
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Have you been able to login to the GUI with your user? Is your user name music? What are the permissions on the usb drive? If your logged in to the GUI as your user then open a terminal (Konsole) and su to root if you need it.
Good luck. ;-)
I've been able to login as my user,.... it's very easy,.....
I also have been able to login as root in console (terminal) mode
But, I still can't play music,... or do a lot of thing in non graphical mode.
That's why I want to become root in graphical mode,...
My user name is not a name of music. I just want to copy some mp3 file from my home directory to my USB flashdisk. Sorry I should write 'cp /home/Griefond/music/*.mp3 /mnt/sda1'. My user name is my nick here,... Griefond
The owner of USB device is root,... So that I can't access it except I'm the root,.... (I can access my flashdisk only in console mode by using 'su')
I can copy some files from my flashdisk but
I can't copy any files to my flashdisk
It's my prime problem
By the way,... what linux distribution do you use?
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Quote:
Originally Posted by Griefond
I've been able to login as my user,.... it's very easy,.....
I also have been able to login as root in console (terminal) mode
But, I still can't play music,... or do a lot of thing in non graphical mode.
That's why I want to become root in graphical mode,...
If you're logged into the GUI as your user and you can't play music it's likely a permission problem, if you can't play music at all you've likely not setup your sound card properly. Try running alsamixer and unmute your volume channels.
Quote:
My user name is not a name of music. I just want to copy some mp3 file from my home directory to my USB flashdisk. Sorry I should write 'cp /home/Griefond/music/*.mp3 /mnt/sda1'. My user name is my nick here,... Griefond
The owner of USB device is root,... So that I can't access it except I'm the root,.... (I can access my flashdisk only in console mode by using 'su')
I can copy some files from my flashdisk but
I can't copy any files to my flashdisk
It's my prime problem
You probably mounted the device as root. I'm not sure how your install is setup, so try adding this line to your /etc/fstab file.
Code:
/dev/sda1 /mnt/sda1 vfat user,noauto,umask=0 0 0
With that line you should be able to mount the device as your user which should solve any permission problems.
Quote:
By the way,... what linux distribution do you use?
Currently Slack, OpenBsd, FreeBsd, in the past, I've tried most of the major players, Redhat, Mandrake, Suse, Gentoo, Debian, etc. Hope this helps.
Good luck. ;-)
If you're logged into the GUI as your user and you can't play music it's likely a permission problem, if you can't play music at all you've likely not setup your sound card properly. Try running alsamixer and unmute your volume channels.
You probably mounted the device as root. I'm not sure how your install is setup, so try adding this line to your /etc/fstab file.
Code:
/dev/sda1 /mnt/sda1 vfat user,noauto,umask=0 0 0
With that line you should be able to mount the device as your user which should solve any permission problems.
I've tried to add /dev/sda1 /mnt/sda1 vfat user,noauto,umask=0 0 0
to /etc/fstab
But it's doesn't work,...
I've tried to change vfat into auto,... but it doesn't work either,....
No idea,... what should I do....
Putting "/dev/sda1" in your fstab isn't really a good idea IMO, as you generally can't be certain that your device will always be /dev/sda (unless of course you can be certain!). You should look into making a udev rule for it.
Anyway, you need to say what "doesn't work" actually means. Do you get error messages? Post them..
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
Quote:
I've tried to add
/dev/sda1 /mnt/sda1 vfat user,noauto,umask=0 0 0
to /etc/fstab
But it's doesn't work,...
I've tried to change vfat into auto,... but it doesn't work either,....
No idea,... what should I do....
You're probably trying to mount it via the command line, I was in process of helping you set it up from the GUI since you seem to want to do most things in that interface. Running KDE logged in as user with that line in your fstab and the stick plugged in, right click on your desktop and choose Link to new hard disk. That should give you a selection list of your fstab devices from there choose the usb stick. You should now have an icon on the desktop which you can right click on and mount/unmount your stick.
As the previous poster stated you should look into udev, what I've offered is kind of a band-aid fix.
Good luck. ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.