Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-18-2005, 06:31 AM
|
#1
|
Member
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157
Rep:
|
User unability to access folders in GUI...
I understand that is could be useful to limit users in an office for instance but for home use it's odd not to have access to folders... it brings me to another annoying feature which is the ability to mkdir only by root...
If i "su" myself in a command line i can access those folders but if i'm already logged in as a user i cannot access them in GUI.
Is there an option to allow a user to access those folders with GUI or do i have to log on as root everytime i get pissed?
|
|
|
02-18-2005, 06:41 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
What folders? There are security reasons some folders require root. You don't usually need to access those folders for normal desktop use.
|
|
|
02-18-2005, 06:49 AM
|
#3
|
Member
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157
Original Poster
Rep:
|
Sorry i forgot to mention that im using fedora core 3 if that makes any difference.
i know there is that kind of folders... im not interested in those...
imagine a case in which i need to create a folder so i can import files from my nts system and put them there... i get stuck again because only root can do it...
[infernal@fedora windows]$ mkdir /example
mkdir: cannot create directory `/example': Permission denied
so afterwards if i need to gain access to those files in GUI i can't... it want's me to be root..
|
|
|
02-18-2005, 06:50 AM
|
#4
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
If anyone could see (and modify) that folders/files than you wouldn't be needing a root account anymore. Therefore a key-concept of Unix/Linux would be lost: security.
Why do you need to see that folders as a regular user anyway? And you don't need to log in as root "anytime you get pissed". Just use 'su'.
Also many programs that use a GUI (at least in KDE) have an "Administration mode" button which asks for root's password to enable you to do whatever you want. Also in KDE there's GKsu which you can use to run programs with root privilegs.
|
|
|
02-18-2005, 06:55 AM
|
#5
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
You posted just as I was typing. There's a workaround for that: 'su' -> 'mkdir <dir_name>' -> 'chown user:group <dir_name>' or 'chgrp group <dir_name>'.
|
|
|
02-18-2005, 06:58 AM
|
#6
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
You just need to set up your mount point and folder permissions correctly... ie I have my media in folders like /media1 and /media2 which I can access as a normal user and store mp3's and share them over the network... Easiest solution would be to create the folders in you user pace in home... or set up a link, etc... I really depends on what you want to do and where you have the disk space, etc...
|
|
|
02-18-2005, 07:07 AM
|
#7
|
Member
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157
Original Poster
Rep:
|
harken - yeah i know i can go anywhere with "su" command...
the thing is that i need to access folders in GUI "File Browser" there i can't define that i want to access a folder as root (at least i dont know how yet)... it's default is to assume that im the logged in user.
amosf - yeah that's the thing im interested in... where do i define those mounting points for folders?
|
|
|
02-18-2005, 07:13 AM
|
#8
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
Partly in the /etc/fstab and partly in the folder permissions ie. using the /media1 directory as an example.
/dev/hdb9 /media1 ext3 suid 1 1
drwxrwxrwx 13 root root 4096 Feb 18 22:10 media1/
or make a group... This is an insecure way to do it, but works...
|
|
|
02-18-2005, 07:22 AM
|
#9
|
Member
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157
Original Poster
Rep:
|
ah... yep the chmod worked... i feel kinda dumb for asking that question because i forgot the chmod... but hey, i'm a n00b
thanks for your time guys
|
|
|
All times are GMT -5. The time now is 04:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|