LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Slackware user accounts (https://www.linuxquestions.org/questions/linux-software-2/slackware-user-accounts-288793/)

sajentyst 02-11-2005 12:04 AM

Slackware user accounts
 
hey whats up people, i got a question. I just installed slackware 10, i have a linux partition and a windoz partition. WHen i log into root it sees my windoz partition, and connects to the internet. But when i log into my user account it does not see anything outside the user directory, and internet does not work, cant get it to work on the user account. I added a user account "assuser" as root and took all defaults when prompted for group and such. Can anyone suggest anything i'm doing wrong, or anything that i should change? I'm thinking it might be a permission problem, but not sure about what to change with it, and what commends will do it. Thanks a lot.
-sajentyst

Artanicus 02-11-2005 07:38 AM

Okies.. Ill try an help you, but I need some more info..

You are connecting to the internet via broadband, modem or what? Doesnt work as a user.. What do you mean by the internet not working with a user? You mean you cannot do ping / finger / http with a user?

Now, another, what do you mean by "sees the windows partition", a computer cannot see anything, you have to be more specific on that.. If the installation found your partition, it should have asked you for a mountpoint where to mount it. It will be mounted there upon machine bootup. To access it, youll have to look in the mountpoint you gave it in the installation. If you want to be able to modify the stuff in the windows partition with a normal user, youll have to modify your /etc/fstab like this (an example from my fstab):
Code:

/dev/hda5        /windows/G      vfat        rw,umask=0000,exec  1  0
the umask=0000 enables you to use it fully with a user. Do not add this if you have other users who should not get access to the partition.

And the last one. You say you cannot access anything but the home dir with the user. Is this in konqueror or everywhere? If you open up a shell / konsole / whatever you like to call it, as a normal user, and type:
Code:

cd / && ls
You should get a listing of your directory root. Can you do this with a user? If you can, all should be as its meant to be.

Please provide more info so I can be more specific in my help.. (;

sajentyst 02-11-2005 12:17 PM

slackware user accounts
 
thanks for helping out.
i'm connecting via broadband, cable. By saying internet does not work as a user i mean i do not get a signal, browsers dont connect, ping cannot complete, as ifi dodnt have a connection at all. The installation found the partition, and i have it set up as "windoz" on hda1, and a second hard drive that is NTFS "hdd_2" on hdb. When i typed in "cd / && ls" it brought up all the directories, even the ones in the NTFS partition. But when i try to access them it says permission denied. I'm kinda new to linux, especially to slackware, so i'm trying to learn all the commands and stuff for user permissions and everything like that. So my main problem right now is that i can see all the directories that i should see, but i cannot access any of them. Hope you can help, thanks a lot.

Artanicus 02-11-2005 12:33 PM

Okies, lets deal with the partitions first. If you edit the widows parition info in /etc/fstab by adding to the options list the "umask=0000" option, they will be accesible by all users with full rights. You have to edit fstab as root with an editor. One of the easiest to start with is nano. All you have to do to get to edit it is type as root:
Code:

pico /etc/fstab
This should fix the partition access.

The internet part is a bit more tricky.. Now, the way it normaly works:
The computer starts at boot as root the dhcpcd (dhcp client daemon) and fetches the connection info. Most broadband ISP:s go this way..
Now that the connection has been accomplished as root, it should work for every user equally. What did you mean by signal? Do you have a WLAN? Anyways, if the ethernet card is supported and dhcpcd can get an ipaddress for the computer, the net should work for everyone. Heres some info I ask of you to supply.

As root, type:
Code:

ifconfig
and paste the output here.. This will show all active net connections and their type / other info

Also, any "abnormalities" in your network setup, do you use a proxy, wireless network, external/internal modem, normal ethernet card?

sajentyst 02-11-2005 04:07 PM

ok i got some good news, and bad news. I got the internet to work, after i installed the 10.1 slackware version, but i still cant get the permission stuff to work. When i log into root and edit that file, i do not getany more permissions than i had. It told me that i cannot set permissions because it is on a read only disk. I played wit hthat file some more and i got the permissions to set up right, but now when i go into the windoz file i cannot see the contents, it's just blank. So i guess i screwed somethign up. Hope you ahve osme more ideas, i'll keep playing with it and check back here, thanks a lot for the help.

Artanicus 02-11-2005 04:14 PM

oh yeah, sorry, I forgot to mention.. After youve set the fstab in order, you have to remount the partitions for it to take effect..
Code:

umount /where/ever/your/mountpoint/is && mount /where/ever/your/mountpoint/is
If the mountpoint seems empty, its probably that you have read permissions to the folder, but not the stuff in it.. Either you can:
Code:

chmod -R blaablaablaa
the R switch will apply the permission recursively to every file and folder under the directory you order it to..
But the smart way is to get the fstab right and remount, after that the permissions will be correct on every boot. FAT and NTFS partitions dont support file permissions, so they wont stick.

Just a note incase you havnt noticed it yet, you can read a NTFS partition, but writing is not possible.. Well, it is, but its damn buggy and _will_ mess up the data. FAT partitions arnt a problem, fully writable..

Hope this helps.. Im off to bed.. (;

sajentyst 02-12-2005 12:00 AM

dude you rock, unmounting and remounting the partitions everything works great. Thanks a lot, you set up my system for me. But with that working i found another problem, the biggest reason why i wanted to get to those partitions was for my MP3s, and when i play them in xmms now, i get no sound. When i go to volume control and put the volume up it just drops back down to 0. Is this a problem with my sound card or what? Hope you can help me with this one as well. Thanks for all the otehr help.

Artanicus 02-12-2005 02:25 AM

Well, have you had sound working before? If not, heres a quick guide to it.

Imho alsa is the best way to produce sound. It works system wide and most applications support it. So these instructions are for that. In KDE I strongly recommend taking off the sound system (arts) from the control panel. It will just mess with alsa.

First as root, run
Code:

alsaconfig
. It will interactively search for your soundcard and make the needed configurations for it. When it asks if you want it to modify the modules, say yes. After the wizard has completed succesfully, just type:
Code:

alsamizer
and adjust the volume levels to your liking. After that:
Code:

alsactl store
This will store the sound settings so they will be loaded at boot. So, at this point your sounds should be working. In xmms you have to access the settings and change the main output plugin to alsa. And last but defrinately not the least, we'll make sure the sound restore at boot works:
Code:

chmod +x /etc/rc.d/rc.alsa
This will make sure it is executable and thus will be executed at boot loading the alsa sound system. If you sometimes have problems with alsa, you can just issue
Code:

/etc/rc.d/rc.alsa restart

sajentyst 02-12-2005 10:52 AM

thanks, it all works now, now i can get to setting everything up, i haven't used linux for about 4 years now, but i finally got sick and tired of dealing with windows and decided to just use linux again. Gotta love all the options you get in it, anyway thanks a lot for all the help.


All times are GMT -5. The time now is 08:50 AM.