Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: ronald1969 on February 07, 2005, 09:27:50 PM

Title: Access to users i-bays
Post by: ronald1969 on February 07, 2005, 09:27:50 PM
As administrator how can i get access to the contents of users?
Title: Access to users i-bays
Post by: mbachmann on February 08, 2005, 10:05:11 AM
As admin you already have access.
Title: Access to users i-bays
Post by: dmajwool on February 08, 2005, 02:48:36 PM
Administrator has access rights to the entire filesystem.  You can access the homefolders using the local console of the server, or remotely using Putty.

At the console prompt, type mc to launch the Midnight Commander and navigate to /home/e-smith/files and you will see where you want to go from there.

HTH, David.
Title: Access to users i-bays
Post by: ronald1969 on February 08, 2005, 07:54:47 PM
Thanks for your reactions.
But when I am logged in on a remote windows system as Admin I only see the I-bays I created and the I-bay for Admin.
On the remote system I use Total Commander.
Why can I not access these I-bays using Total Commander?
Title: Access to users i-bays
Post by: dmajwool on February 09, 2005, 07:57:35 AM
Quote
Why can I not access these I-bays (at a remote workstation)using Total Commander?

Because SME does not expose the entire filesystem for browsing except when using the two access methods I described.
1. Local console
2. view local console remotely when connected via ssh.  Your original post asked about access to Users.  
Users' home folders are not i-bays.
HTH David
Title: Access to users i-bays
Post by: wingman on February 09, 2005, 06:57:59 PM
Credit for the following goes to Patrick Tehvand of tehvand.com consulting. I ran across this months ago on his site, but the document is gone now. Follow the instructions, but be warned: I have not tried this myself. Only passing on what he said will work. Try at your own risk!

Create a new template fragment in /etc/e-smith/templates-custom/etc/smb.conf
--I call mine 55adminhomes

# vi /etc/e-smith/templates-custom/etc/smb/smb.conf/55adminhomes
Add the following to the template:
[admin_shares]
comment = home_directories
path = /home/e-smith/files/users/
valid users = admin root *your_user_name
admin users = admin root *your_username
write list = admin root *your_user_name
public = no
browsable = yes
writable = yes

*you may add as many users as you like here as long as they are separated by a space.

Then refresh the template:
# /sbin/e-smith/expand-template /etc/smb.conf

Then refresh the Samba server so your template is active:
# /sbin/service smb reload

Now you should be able to browse to \\\admin\shares
Title: Access to users i-bays
Post by: syx on February 10, 2005, 06:17:13 AM
Great tip about the admin shares. I have done this on a test server (6.5b2) but i made the change to

/etc/samba/smb.conf

instead of the template file you mentioned above.

It works, and i would like to do it to the real server but i am weary because i did it differently.

Have i gone about this the wrong way ?
Is it safe to do to my real server (6.0b2) ?

Thanks
Title: Access to users i-bays
Post by: mbachmann on February 10, 2005, 10:13:57 AM
Noticed the warning "DO NOT MODIFY THIS FILE" at the top of smb.conf?

If you alter settings in files with such warnings, changes will be lost at reboot. You must use the template system. Do like wingman suggested.
Title: Access to users i-bays
Post by: syx on February 10, 2005, 11:21:01 PM
under the templates-custom/ directory do i just manually create the directory structure, and is the 55adminhomes a text file that i put the new share config in ?


Thanks
Title: Access to users i-bays
Post by: wingman on February 11, 2005, 03:16:02 PM
syx,

No. The first command that I gave you (bold type) starts the vi text editor. If you are not familiar with this editor, do a quick Google search on it and spend 15 minutes reading about the basics. When using the first command, it creates the directory path and the file all in one step. BTW, this needs to be run from the command line, and the # at the beginning is NOT to be typed in. After vi is open, hit "i" to enter insert mode. Then type in the contents as shown. When finished, hit the "Esc" key to return to Command mode, then type "ZZ" (notice the caps) to quit and save the file.
Now type the other commands in bold, exit the command line, and you're done.
Title: Access to users i-bays
Post by: bushinc on March 01, 2005, 09:34:44 PM
Just an FYI - pico is IMHO much easier to work with than vi.  Not to offend any vi gurus out there...
Title: Access to users i-bays
Post by: bart2 on March 02, 2005, 04:30:30 PM
Quote from: "wingman"
......hit the "Esc" key to return to Command mode, then type "ZZ" (notice the caps) to quit and save the file.



I get the message:

"e-smith/templates-custom/etc/smb/smb.conf/55adminhomes" E212: Can't open file for writing

what i'am doing wrong (i'am new to linux so i think it is something simple ) :-?