Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
12-02-2002, 06:22 AM
|
#1
|
LQ Newbie
Registered: Dec 2002
Location: nigeria
Distribution: slackware 8.1
Posts: 12
Rep:
|
root privileges and permissions
i found out that whenever i 'su', i can't run my own apps unless i exit. for instance if i wanted to gedit a config file, after i 'su' and run gedit i get:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0.0
i use slackware 8.1/win2k.
Also, i have a fat partition which i use to swap files between linux and windows. as a normal user i can't copy to or edit files in my fat partition unless i'm root. i tried chmod but the permissions did not change!
i would like to be able to have read-write access to my fat as a normal user just like i did when running mandrake 7.x
|
|
|
12-02-2002, 07:20 AM
|
#2
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
Not being able to run/edit, etc. another users files or programs would be considered normal in Linux because of security.
To mount your FAT partition for everybody to read/write/delete you have to tell the system when the file system is mounted to allow it. Use a mask to set the access bits. Try to modify your fstab mount entry point to include the option something like below:
/dev/hda3 /fat vfat users,noauto,umask=000 0 0
Change above what you need for your system of course. But the main new item is the umask setting.
Cheers!
Last edited by Excalibur; 12-02-2002 at 07:22 AM.
|
|
|
12-02-2002, 07:32 AM
|
#3
|
Member
Registered: Oct 2002
Location: 42° 42' N, 23° 19' E
Distribution: Slackware 8.1
Posts: 77
Rep:
|
Quote:
i found out that whenever i 'su', i can't run my own apps unless i exit. for instance if i wanted to gedit a config file, after i 'su' and run gedit i get:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0.0
|
Try "$ su -" instead of just "$ su"
Quote:
Also, i have a fat partition which i use to swap files between linux and windows. as a normal user i can't copy to or edit files in my fat partition unless i'm root. i tried chmod but the permissions did not change!
i would like to be able to have read-write access to my fat as a normal user just like i did when running mandrake 7.x
|
Add something similar to your /etc/fstab:
#filesystem mount-point fs-type options dump fsck-order
/dev/hdaX /mnt/dos vfat defaults,rw,user 0 0
Replace "user" with "users" if you want to allow anyone to unmount the partition. If you don't want this live it this way ("user").
For more info "$ man 5 fstab" 
|
|
|
12-02-2002, 07:51 AM
|
#4
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
Re: root privileges and permissions
Quote:
Originally posted by evil_lafta
[B]i found out that whenever i 'su', i can't run my own apps unless i exit. for instance if i wanted to gedit a config file, after i 'su' and run gedit i get:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0.0
|
The message says that don't have permisson to open your X display, so before exec the command, you will need with your user give access to your X:
# xhost +
and to direct your variable as root:
# export DISPLAY=:0
Hope that helps ...
|
|
|
01-25-2003, 03:11 PM
|
#5
|
LQ Newbie
Registered: Jan 2003
Posts: 1
Rep:
|
I found this thread pretty helpfull, but did not completely fix my problem. I am mounting a vfat partition to share files between zp and redhat 8.0. I could not allow non-root users to write to this partition. I tried both methods proposed by vladkrack and pesho_p respectibly. Both methods allowed write access for non-root users, but I can not change the user or group of this partition. So the user is still listed as root, but my user does have write access.
My fstab entry is this:
/dev/hdf1 /home/Sean/media vfat defaults,rw,users 0 0
Thanks for any help.
Sean
|
|
|
01-25-2003, 03:32 PM
|
#6
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
Quote:
Originally posted by Excalibur
...But the main new item is the umask setting.
|
|
|
|
01-27-2003, 06:22 AM
|
#7
|
LQ Newbie
Registered: Dec 2002
Location: nigeria
Distribution: slackware 8.1
Posts: 12
Original Poster
Rep:
|
yeah. add umask=000 to the vfat line
|
|
|
08-20-2003, 09:37 PM
|
#8
|
Member
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58
Rep:
|
you might also try mounting the drive manually with
# mount -o umask=0000 /dev/hda1 /home/Sean/media
|
|
|
All times are GMT -5. The time now is 07:57 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
|
|