Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM

[ARCHIVED THREAD] - OK Linux Guys (Page 1 of 2)

Previous Page
/ 2
Next Page
3/20/2007 3:14:39 PM EDT
I've made the switch...

I just installed Ubuntu 64bit desktop

I want to run a server on this thing.

I have 4 HDDs in a Raid 5 setup so thats 1.36 Tb

and 1 300 Gb HDD that the OS is on.

Here is what I want to do.  

Have stuff stored on the raid array. (how do I know what drive it's storing stuff to in linux?  There aren't any drive letters... )  

I want to set it up so people can login from any windows computer without needing to use any ftp software.  just search for my computer on the network and click on it.  And you'll be prompted for a user name and password.  Everyone will have their own individual login name and password.

I want to also set up an ftp where people can change their user name and password... and those changes will affect the regular way of accessing the server.

I want people to be able to see and download everything on the raid array but only upload to 1 file on the raid array.


What programs do I need to do this?

If you just tell my the programs I may be able to figure out how it set everything up... and of course I'll run here if I have questions...  



I tried server edition but the console only thing wasn't working for me... I couldn't figure out how to read a readme file... so I went with the desktop...
3/20/2007 4:00:34 PM EDT
[#1]
i don't know much about ubuntu, but on fedora  

I use putty to connect to my fedora box.  port 22  you CAN change the port too


on the lan side i setup  samba >  setup a username and password >  setup folders that are shared for users.   all you type is \\192.168.1.100  <---- your server IP   (i can only get it to work by ip address i guess thats normal)  then type in your ip address and it connects.    


can't help you on the raid part.   never done that on a linux distro
3/20/2007 4:06:54 PM EDT
[#2]

Quoted:
Have stuff stored on the raid array. (how do I know what drive it's storing stuff to in linux?  There aren't any drive letters... )  


It's impossible.  It taunts you.

I kid I kid.

But seriously forks, read up on the Unix-style filesystem hierarchy, and then you must realize that partitions on drives are mounted in specific places under /.

Unlike the DOS/Windows world, drives are not the root of the tree - "/" is.  Drives are mounted in certain "mount points" at and under that.

For example, say you have 3 drives each with 1 partition each, to keep things simple.

drive 1 is mounted at / .  Everything under / is stored on drive 1 unless otherwise noted.
drive 2 is mounted at /boot/.   everyting under /boot/ is stored on drive 2 unless otherwise noted
drive 3 is mounted at /swap/.   everything under /swap/ is stored on drive 3 unless otherwise noted

This is of course completely configurable and will not accurately reflect your system, distribution, whatever. I'm just giving an example, so don't go looking where I just told you to look.


so if you copy /file.txt to /boot/file.txt you will have moved it from one drive to another.

Other drives are usually mounted by the OS in a special mount directory, such as /mnt/.   so your CDROM might start at /mnt/cdrom, the floppy at /mnt/floppy, etc....

As you can see if everything is under the same tree, the user can be ignorant (and rightly so) of how the Unix server is physically configured.  You can move /usr/accounting/  to a larger drive and they will never know the difference, for instance.
3/20/2007 7:27:39 PM EDT
[#3]
ok I'm now posting from my server... this looks great now I just have to figure out how to do every thing...


so I looked around the fileing system... everything seems to be in the 300 Gb drive ... which is good but it seems I can't see the 1.36 Tb of space there is in the raid array.  so I'm guessing that hasn't been partitioned or formated or whatever needs to happen so I can access it...

so the question is .... How do I do that?

I'm going to bed now... I'll be working on this all tomarrow
3/21/2007 8:08:56 AM EDT
[#4]
update...

It seems linux doesn't like my bios raid set up...

disabled that.

reinstalling linux in the hopes that it will mount all 5 hard drives correctly and I won't have to manually edit things to make it work.

downloading some sort of linux software raid ...  I've heard mdadm is good... but that's not a gui... and since I'm a windows native... I want a gui interface... you guys have any suggestions?


I'll figure out how to run this as a server latter... right now the goal is recognizing the HDDs are there and setting up the raid
3/21/2007 1:26:25 PM EDT
[#6]

Quoted:
www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID


helpful and correct until it got to raidtab file... this file does not exist to be modified

I'm using mdadm to make the raid...

I've tried once and got...

sudo mdadm --create --verbose /dev/.static/dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdb /dev/sdd
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: size set to 488386496K
mdadm: failed to open /dev/sdb after earlier success - aborting


there seems to have been some sort of error... now I'm trying to figure out what went wrong

I figured out what's wrong I had 2 sdb  ... so now how do I start over?

sudo mdadm --create --verbose /dev/.static/dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda appears to be part of a raid array:
   level=raid5 devices=4 ctime=Wed Mar 21 17:04:01 2007
mdadm: /dev/sdb appears to be part of a raid array:
   level=raid5 devices=4 ctime=Wed Mar 21 17:04:01 2007
mdadm: size set to 488386496K
Continue creating array? y
mdadm: array /dev/.static/dev/md0 started.


looks to me like it only did sda and sdb....

am I still doing something wrong?

I think it's ok...
3/21/2007 5:34:50 PM EDT
[#7]
IT works! huzzah!

ok the Raid is working...

now to file sharing


I looked into samba so far I can't get it to let me access anything from another computer.  I also can't find anywhere where multiple logins could be set up.

I need some sort of ftp software that has this functionality:

running a server
in ftp
and
in windows file sharing

allows many users to login and change there login info

allows file permissions to be set differently for each user

and of course can run in ubuntu linux... this means has a gui... command line only is not my thing.

If I can't get that then give me 2 programs... one for the ftp and one for the windows sharing.

I'd have people login to the ftp and change their info... then manually change the window sharing...  There has got to be a way to share the passwords between the 2 ...
3/21/2007 5:45:54 PM EDT
[#8]
In order to have multiple logins from which Windows Machines can access your server, you will need to have the accounts on your Linux box. To find out how to add users try typing 'man adduser' or 'man useradd' (depending on which version is installed).

Once you have created the users, you will need to edit the configuration file for Samba to allow for access to home directories over the LAN. This file will be /etc/samba/smb.conf and will have all the options available to you. You will just need to uncomment (remove the # from the beginning of the line) anything that applies to your setup. Some of the key things you will need to change are the Workgroup name and who is allowed to access Samba Shares. A quick google search on Samba Configuration will get you started.

Good Luck!
3/21/2007 7:01:14 PM EDT
[#9]

Quoted:
this means has a gui... command line only is not my thing.
...


Install webmin if you fear the command line, young jedi.
Continue down the path to the dark side and you'll
become enlightened to the power of vi
3/22/2007 4:42:44 AM EDT
[#10]
I had to go through command line to set up the raid... it was painful.

But I figured it out... after much searching for what the commands should be...

It's difficult to do things when you don't know how to open a program.  and don't understand the help files


the command verbose was in the creation of the raid array... I still have no clue why or what it did...


I was in help chat... and here's a sample of the conversation:

Helper: open a shell
Me: what's a shell?

so... this is the level of competence we're dealing with...
3/22/2007 5:21:58 AM EDT
[#11]

Quoted:
so... this is the level of competence we're dealing with...


well, you know when to ask questions. and you don't pretend you know more than you do.

you're ahead of about half the tech field right there.  

3/22/2007 6:20:10 AM EDT
[#12]

Quoted:
allows file permissions to be set differently for each user



You need acl support for that : sudo apt-get install acl. Then you'll have to mount the filesystem with acl support, add acl to the line for your / filesystem in /etc/fstab; something like this:

# /dev/hda3
UUID=07456b5b-4de9-4112-99c8-8b29a57b035a /               ext3    defaults,errors=remount-ro, acl 0       1

Or just "sudo mount / -o remount,acl" if you want to use acl on your / filesystem without rebooting.

Then you can use setfacl to set file permissions and set getfacl to view them.




and of course can run in ubuntu linux... this means has a gui... command line only is not my thing.

I have no idea it this can be done in a gui.


3/22/2007 7:23:57 AM EDT
[#13]
this is what the raid fstab info looks like

/dev/md0        /mnt/raid      ext3    defaults 0   0

so you want me to add acl to this?

so it should look like this?

/dev/md0        /mnt/raid      ext3    defaults errors=remount-ro, acl  0   0


is that right?
3/22/2007 7:35:22 AM EDT
[#14]

Quoted:
this is what the raid fstab info looks like

/dev/md0        /mnt/raid      ext3    defaults 0   0

so you want me to add acl to this?

so it should look like this?

/dev/md0        /mnt/raid      ext3    defaults errors=remount-ro, acl  0   0


is that right?


Somewhat.

From man 5 fstab

      The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks  are
      done  at  reboot time.  The root filesystem should be specified with a fs_passno of 1, and other filesystems should
      have a fs_passno of 2.  Filesystems within a drive will be  checked  sequentially,  but  filesystems  on  different
      drives  will  be  checked at the same time to utilize parallelism available in the hardware.  If the sixth field is
      not present or zero, a value of zero is returned and fsck will assume that the  filesystem  does  not  need  to  be
      checked.

Hence, it should be

/dev/md0        /mnt/raid      ext3    defaults errors=remount-ro, acl  0   2

Try with mount /mnt/raid -o remount,acl first.


3/22/2007 7:42:14 AM EDT
[#15]
sudo mount /mnt/raid -o remount,acl

did nothing as far as I can tell...

so I'll change fstab now...


also I'll need a step be step on how and where to create users... user groups and edit the file permissions for the files I want them to access
3/22/2007 7:51:21 AM EDT
[#16]

Quoted:
I've made the switch...

I just installed Ubuntu 64bit desktop

I want to run a server on this thing.

I have 4 HDDs in a Raid 5 setup so thats 1.36 Tb

and 1 300 Gb HDD that the OS is on.

Here is what I want to do.  

Have stuff stored on the raid array. (how do I know what drive it's storing stuff to in linux?  There aren't any drive letters... )  UNIX-based systems use a unified directory structure - all drives are mounted (attached) to the same directory tree. You simply mount a drive to a certain directory (like /mnt/array for your raid - but it can be anything, anywhere) and all files saved there go on that drive. The drives themselves have device names (hda-hdz for IDE, sda-sdz for SCSI, and so on) which you use to mount them.... Check the 'web on that - each linux system has it's own tools to 'simplify' this, but the best way to do it is to go read up on how the system works)....

I want to set it up so people can login from any windows computer without needing to use any ftp software.  just search for my computer on the network and click on it.  And you'll be prompted for a user name and password.  Everyone will have their own individual login name and password. SAMBA - look it up online - makes your UNIX system look like a Windows Server system

I want to also set up an ftp where people can change their user name and password... and those changes will affect the regular way of accessing the server.Many UNIX ftp systems do centralized authentication (single-sign-on) - the issue is how the users will change passwords

I want people to be able to see and download everything on the raid array but only upload to 1 file on the raid array. ProFTPd - look it up online


What programs do I need to do this?

If you just tell my the programs I may be able to figure out how it set everything up... and of course I'll run here if I have questions...  

ProFTPd, SAMBA, and that's it - both should come with your distro. Maybe WebMin or some other front-end that will allow users to change their passwords and info over the web (I'm assuming you don't want to give all your users console (shell) access via ssh or telnet - if you do, webmin goes out the door (un-needed) but you'll then need to worry more about hackers)

I tried server edition but the console only thing wasn't working for me... I couldn't figure out how to read a readme file... so I went with the desktop...

the command 'type' in DOS (eg 'type readme.txt' is 'cat' (eg 'cat readme') in unix.

If you want to read something from the console one-page-at-a-time, the command is 'less' (eg 'less readme' will give you 'readme' one screen at a time)... Useful for remote access - where you need to change something and the con is all you have...

P.S. Remember UNIX was designed in the early days of the computer era, when you could get away with naming a file transfer protocol after a MUPPET (Kermit)... Most of the programs that make up the system were named by programmers & geeks - and since so many people learned to use the silly-named stuff, it stays that way... Once you learn it, it all just 'makes sense'...

The difference is that it won't pop up an animated paperclip, or ask you 20 times if you really, really, really want to erase your entire machine... It will just do what it's told, without more than 1 'yes/no' prompt...

HAVE FUN...

3/22/2007 7:51:44 AM EDT
[#17]
nuts fstab is read only...

I can't save the new line...

how did I do this before?

found it ... sudo gedit fstab
3/22/2007 7:53:47 AM EDT
[#18]

Quoted:
nuts fstab is read only...

I can't save the new line...

how did I do this before?


Log in as root ('su -')...

No root... No edit /etc/fstab (or most other system files - it's like 'Administrator' on Windows, but stricter - UNIX/Linux won't pop up a box that says 'You need to be logged in as root, enter your password' like MS does - you are expected to know that what you are doing requires you to be root.)...

If you are root, then you need to change the file permissions on /etc/fstab - 'chmod /etc/fstab u+rw' (Which means change the file permissions for the owning user (eg root) to read-write, but don't change group or everybody permissions. 'man chmod' for more info on that)
3/22/2007 7:54:52 AM EDT
[#19]

Quoted:
nuts fstab is read only...

I can't save the new line...

how did I do this before?


sudo nano /etc/fstab
3/22/2007 8:00:31 AM EDT
[#20]
ok got that done...

now I'm going to reboot

and hopfully when I come back you guys will have told me how and where to create users

and

how to use setfacl to change the file permissions for each user for each  file...

I only need one sample

3/22/2007 8:22:37 AM EDT
[#21]
Kudos to the OP for breaking out of the Microsoft box and learning some good info.  Kudos to the folks in this thread giving excellent instructions and advice.

Very rare thread type on AR15
3/22/2007 8:43:54 AM EDT
[#22]
I am having similar problems running the same exact kind of server (ubuntu) but on a PIII with a much smaller HD.

I used Putty and logged into the server.  I then installed samba.

I created a windows network (i still cant map a drive, for some reason....)

I can see the server from both the desktop and laptop, yet when I try to access it, it requires a username and password.

Ill post my config files in samba when I get home.....but i am wondering how to determine a password for a user???  I dont think i ever set one up and it is asking me to enter one.
3/22/2007 8:47:59 AM EDT
[#23]
Dave A

I looked at proftpd

it isn't a gui

I couldn't find any tutorials to setting stuff up

I don't have the slightest idea how to work it...  

I don't even know how to uninstall it


I need an FTP software that 1 is a gui 2 will let me runa server 3 maintain a list of users that can login and change their info



If it isn't a gui or so dumbed down that a windows user can easily figure it out.... then it isn't for me
3/22/2007 8:55:17 AM EDT
[#24]

Quoted:
I am having similar problems running the same exact kind of server (ubuntu) but on a PIII with a much smaller HD.

I used Putty and logged into the server.  I then installed samba.

I created a windows network (i still cant map a drive, for some reason....)

I can see the server from both the desktop and laptop, yet when I try to access it, it requires a username and password.

Ill post my config files in samba when I get home.....but i am wondering how to determine a password for a user???  I dont think i ever set one up and it is asking me to enter one.


Yeah I can't find anywhere in samba where users and passwords are set up...

I'm on a college campus and my laptop can see the server in my room...

but when I go somewhere else on campus I can't see it.

I can't access it in my room... it prompts for a user name and password and since I can't find anywhere to set that up in samba... I'm stumped...
3/22/2007 9:09:35 AM EDT
[#25]
arrgggg

why are the various help, man, info files so UNHELPFUL

I need examples dang it!

like man chmod ... wasn't helpful at all...  it basicaly said you can use this to change file permissions to this that and the other thing... but no example...

so I'm left where I started knowing it can be used but having no Idea how to use it.
3/22/2007 9:09:41 AM EDT
[#26]

Quoted:

Quoted:
I am having similar problems running the same exact kind of server (ubuntu) but on a PIII with a much smaller HD.

I used Putty and logged into the server.  I then installed samba.

I created a windows network (i still cant map a drive, for some reason....)

I can see the server from both the desktop and laptop, yet when I try to access it, it requires a username and password.

Ill post my config files in samba when I get home.....but i am wondering how to determine a password for a user???  I dont think i ever set one up and it is asking me to enter one.


Yeah I can't find anywhere in samba where users and passwords are set up...

I'm on a college campus and my laptop can see the server in my room...

but when I go somewhere else on campus I can't see it.

I can't access it in my room... it prompts for a user name and password and since I can't find anywhere to set that up in samba... I'm stumped...



As a start, try "sudo smbpasswd -a <user  name>" You'll have to edit /etc/samba/smb.conf, this can be a start:

[serier] <- name of share
path = /mnt/raid1/serier/serier <- actual path
write list = <user name>
browseable = yes
valid users = < user name>

There is numerous examples in /etc/samba/smb.conf. You'll have to restart samba each time you edit /etc/samba/smb.conf, try "sudo /etc/init.d/smb restart".




3/22/2007 9:16:36 AM EDT
[#27]
why is it so hard to find a gui for this stuff?

I got Ubuntu so I could do stuff IN A GUI!

If I wanted to learn all this command line stuff I wouldn't have Ubuntu...




By the way that fstab edit earlyer unmounted my raid... I just remounted it...

if when I restart it doesn't remain mounted... I'll have to remove it...
3/22/2007 10:25:53 AM EDT
[#28]
Ubuntu is so revolutionary because it is basically the start of Linux going GUI and is able to compete with MS on a practical user basis.

Ubuntu is not that old......so the Linux community just started going this route.  GUI aps are slowing coming along, but it goes against every fiber of the Linux open source community's being...
3/22/2007 12:08:22 PM EDT
[#29]
I am getting really frustrated with this...

this should be easy... a no brainer... but it's not

at this point I'm starting to contemplate loading up WIN 2000 Pro instead.




The reason for a gui is so I can press a button that says mount drive... and it does and it edits all the text files for me all in a fraction of a second. Instead of Hours sifting through lists of files trying to find the one I need to edit. then another hour editing it. then another fixing what you screwed up because you edited something wrong.




In a gui interface to should take me 15 minutes to set up a server. not the days it's taken me to get to this point...

which is no file sharing working at all...

I'm giving up for now untill someone can give me a step by step

Share files
set up users with only access to shared files
set up file permissions for each individual user


I'll give it a few day's maybe I can find some who knows what they are doing who can come sit next to me and tell me what to do.

unless this gets easier I'll be running back to windows...
3/22/2007 1:39:09 PM EDT
[#30]

Quoted:
I am getting really frustrated with this...

this should be easy... a no brainer... but it's not

at this point I'm starting to contemplate loading up WIN 2000 Pro instead.




The reason for a gui is so I can press a button that says mount drive... and it does and it edits all the text files for me all in a fraction of a second. Instead of Hours sifting through lists of files trying to find the one I need to edit. then another hour editing it. then another fixing what you screwed up because you edited something wrong.




In a gui interface to should take me 15 minutes to set up a server. not the days it's taken me to get to this point...

which is no file sharing working at all...

I'm giving up for now untill someone can give me a step by step

Share files
set up users with only access to shared files
set up file permissions for each individual user


I'll give it a few day's maybe I can find some who knows what they are doing who can come sit next to me and tell me what to do.

unless this gets easier I'll be running back to windows...


you wont get a good GUI in linux becuase a GUI slows down anyone who knows WTF they are doing. if you would RTFM you will learn.

all of my linux boxes never even HAD a monitor hooked up to them after i got through initial install. i did everything remotly via SSH.

for example, you complained earlier about the "man chmod" not telling you what you need to know. BULLSHIT.



NAME
    chmod -- change file modes or Access Control Lists



SYNOPSIS
    chmod [-fv] [-R [-H | -L | -P]] mode file ...
    chmod [-fv] [-R [-H | -L | -P]] [-a | +a | =a] ACE file ...
    chmod [-fv] [-R [-H | -L | -P]] [-E] file ...
    chmod [-fv] [-R [-H | -L | -P]] [-C] file ...



DESCRIPTION
    The chmod utility modifies the file mode bits of the listed files as
    specified by the mode operand. It may also be used to modify the Access
    Control Lists (ACLs) associated with the listed files.

    The generic options are as follows:

    -H      If the -R option is specified, symbolic links on the command line
            are followed.  (Symbolic links encountered in the tree traversal
            are not followed by default.)

    -L      If the -R option is specified, all symbolic links are followed.

    -P      If the -R option is specified, no symbolic links are followed.
            This is the default.

    -R      Change the modes of the file hierarchies rooted in the files
            instead of just the files themselves.

    -f      Do not display a diagnostic message if chmod could not modify the
            mode for file.

    -v      Cause chmod to be verbose, showing filenames as the mode is modi-
            fied.  If the -v flag is specified more than once, the old and
            new modes of the file will also be printed, in both octal and
            symbolic notation.

    The -H, -L and -P options are ignored unless the -R option is specified.
    In addition, these options override each other and the command's actions
    are determined by the last one specified.

    Only the owner of a file or the super-user is permitted to change the
    mode of a file.



DIAGNOSTICS
    The chmod utility exits 0 on success, and >0 if an error occurs.



MODES
    Modes may be absolute or symbolic.  An absolute mode is an octal number
    constructed from the sum of one or more of the following values:

          4000    (the set-user-ID-on-execution bit) Executable files with
                  this bit set will run with effective uid set to the uid of
                  the file owner.  Directories with the set-user-id bit set
                  will force all files and sub-directories created in them to
                  be owned by the directory owner and not by the uid of the
                  creating process, if the underlying file system supports
                  this feature: see chmod(2) and the suiddir option to
                  mount(8).
          2000    (the set-group-ID-on-execution bit) Executable files with
                  this bit set will run with effective gid set to the gid of
                  the file owner.
          1000    (the sticky bit) See chmod(2) and sticky(8).
          0400    Allow read by owner.
          0200    Allow write by owner.
          0100    For files, allow execution by owner.  For directories,
                  allow the owner to search in the directory.
          0040    Allow read by group members.
          0020    Allow write by group members.
          0010    For files, allow execution by group members.  For directo-
                  ries, allow group members to search in the directory.
          0004    Allow read by others.
          0002    Allow write by others.
          0001    For files, allow execution by others.  For directories
                  allow others to search in the directory.

    For example, the absolute mode that permits read, write and execute by
    the owner, read and execute by group members, read and execute by others,
    and no set-uid or set-gid behaviour is 755 (400+200+100+040+010+004+001).

    The symbolic mode is described by the following grammar:

          mode         ::= clause [, clause ...]
          clause       ::= [who ...] [action ...] action
          action       ::= op [perm ...]
          who          ::= a | u | g | o
          op           ::= + | - | =
          perm         ::= r | s | t | w | x | X | u | g | o

    The who symbols ``u'', ``g'', and ``o'' specify the user, group, and
    other parts of the mode bits, respectively.  The who symbol ``a'' is
    equivalent to ``ugo''.

    The perm symbols represent the portions of the mode bits as follows:

          r       The read bits.
          s       The set-user-ID-on-execution and set-group-ID-on-execution
                  bits.
          t       The sticky bit.
          w       The write bits.
          x       The execute/search bits.
          X       The execute/search bits if the file is a directory or any
                  of the execute/search bits are set in the original (unmodi-
                  fied) mode.  Operations with the perm symbol ``X'' are only
                  meaningful in conjunction with the op symbol ``+'', and are
                  ignored in all other cases.
          u       The user permission bits in the original mode of the file.
          g       The group permission bits in the original mode of the file.
          o       The other permission bits in the original mode of the file.

    The op symbols represent the operation performed, as follows:

    +     If no value is supplied for perm, the ``+'' operation has no
          effect.  If no value is supplied for who, each permission bit spec-
          ified in perm, for which the corresponding bit in the file mode
          creation mask is clear, is set.  Otherwise, the mode bits repre-
          sented by the specified who and perm values are set.

    -     If no value is supplied for perm, the ``-'' operation has no
          effect.  If no value is supplied for who, each permission bit spec-
          ified in perm, for which the corresponding bit in the file mode
          creation mask is clear, is cleared.  Otherwise, the mode bits rep-
          resented by the specified who and perm values are cleared.

    =     The mode bits specified by the who value are cleared, or, if no who
          value is specified, the owner, group and other mode bits are
          cleared.  Then, if no value is supplied for who, each permission
          bit specified in perm, for which the corresponding bit in the file
          mode creation mask is clear, is set.  Otherwise, the mode bits rep-
          resented by the specified who and perm values are set.

    Each clause specifies one or more operations to be performed on the mode
    bits, and each operation is applied to the mode bits in the order speci-
    fied.

    Operations upon the other permissions only (specified by the symbol ``o''
    by itself), in combination with the perm symbols ``s'' or ``t'', are
    ignored.



EXAMPLES OF VALID MODES
    644           make a file readable by anyone and writable by the owner
                  only.

    go-w          deny write permission to group and others.

    =rw,+X        set the read and write permissions to the usual defaults,
                  but retain any execute permissions that are currently set.

    +X            make a directory or file searchable/executable by everyone
                  if it is already searchable/executable by anyone.

    755
    u=rwx,go=rx
    u=rwx,go=u-w  make a file readable/executable by everyone and writable by
                  the owner only.

    go=           clear all mode bits for group and others.

    g=u-w         set the group bits equal to the user bits, but clear the
                  group write bit.



ACL MANIPULATION OPTIONS
    ACLs are manipulated using extensions to the symbolic mode grammar.  Each
    file has one ACL, containing an ordered list of entries.  Each entry
    refers to a user or group, and grants or denies a set of permissions.

    The following permissions are applicable to all filesystem objects:
          delete  Delete the item.  Deletion may be granted by either this
                  permission on an object or the delete_child right on the
                  containing directory.
          readattr
                  Read an objects basic attributes.  This is implicitly
                  granted if the object can be looked up and not explicitly
                  denied.
          writeattr
                  Write an object's basic attributes.
          readextattr
                  Read extended attributes.
          writeextattr
                  Write extended attributes.
          readsecurity
                  Read an object's extended security information (ACL).
          writesecurity
                  Write an object's security information (ownership, mode,
                  ACL).
          chown   Change an object's ownership.

    The following permissions are applicable to directories:
          list    List entries.
          search  Look up files by name.
          add_file
                  Add a file.
          add_subdirectory
                  Add a subdirectory.
          delete_child
                  Delete a contained object.  See the file delete permission
                  above.

    The following permissions are applicable to non-directory filesystem
    objects:
          read    Open for reading.
          write   Open for writing.
          append  Open for writing, but in a fashion that only allows writes
                  into areas of the file not previously written.
          execute
                  Execute the file as a script or program.

    ACL inheritance is controlled with the following permissions words, which
    may only be applied to directories:
          file_inherit
                  Inherit to files.
          directory_inherit
                  Inherit to directories.
          limit_inherit
                  This flag is only relevant to entries inherited by subdi-
                  rectories; it causes the directory_inherit flag to be
                  cleared in the entry that is inherited, preventing further
                  nested subdirectories from also inheriting the entry.
          only_inherit
                  The entry is inherited by created items but not considered
                  when processing the ACL.

    The ACL manipulation options are as follows:

    +a      The +a mode parses a new ACL entry from the next argument on the
            commandline and inserts it into the canonical location in the
            ACL. If the supplied entry refers to an identity already listed,
            the two entries are combined.

            Examples
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
             # chmod +a "admin allow write" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: admin allow write
             # chmod +a "guest deny read" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write
             # chmod +a "admin allow delete" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write,delete

            The +a mode strives to maintain correct canonical form for the
            ACL.
                             local deny
                             local allow
                             inherited deny
                             inherited allow

            By default, chmod adds entries to the top of the local deny and
            local allow lists. Inherited entries are added by using the +ai
            mode.

            Examples
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write,delete
               3: juser inherited deny delete
               4: admin inherited allow delete
               5: backup inherited deny read
               6: admin inherited allow write-security
             # chmod +ai "others allow write" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write,delete
               3: juser inherited deny delete
               4: others inherited allow read
               5: admin inherited allow delete
               6: backup inherited deny read
               7: admin inherited allow write-security

    +a#     When a specific ordering is required, the exact location at which
            an entry will be inserted is specified with the +a# mode.

            Examples
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write
             # chmod +a# 2 "others deny read" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: others deny read
               3: admin allow write

            The +ai# mode may be used to insert inherited entries at a spe-
            cific location. Note that these modes allow non-canonical ACL
            ordering to be constructed.

    -a      The -a mode is used to delete ACL entries. All entries exactly
            matching the supplied entry will be deleted. If the entry lists a
            subset of rights granted by an entry, only the rights listed are
            removed. Entries may also be deleted by index using the -a# mode.

            Examples
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: guest deny read
               2: admin allow write,delete
             # chmod -a# 1 file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: admin allow write,delete
             # chmod -a "admin allow write" file1
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: admin allow delete

            Inheritance is not considered when processing the -a mode; rights
            and entries will be removed regardless of their inherited state.

    =a#     Individual entries are rewritten using the =a# mode.

            Examples
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: admin allow delete
             # chmod =a# 1 "admin allow write,chown"
             # ls -le
             -rw-r--r--+ 1 juser  wheel  0 Apr 28 14:06 file1
               owner: juser
               1: admin allow write,chown

            This mode may not be used to add new entries.

    -E      Reads the ACL information from stdin, as a sequential list of
            ACEs, separated by newlines.  If the information parses cor-
            rectly, the existing information is replaced.

    -C      Returns false if any of the named files have ACLs in non-canoni-
            cal order.

    -i      Removes the 'inherited' bit from all entries in the named file(s)
            ACLs.

    -I      Removes all inherited entries from the named file(s) ACL(s).



COMPATIBILITY
    The -v option is non-standard and its use in scripts is not recommended.



SEE ALSO
    chflags(1), install(1), chmod(2), stat(2), umask(2), fts(3), setmode(3),
    symlink(7), chown(8), mount(8), sticky(8)



STANDARDS
    The chmod utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compat-
    ible with the exception of the perm symbol ``t'' which is not included in
    that standard.



HISTORY
    A chmod command appeared in Version 1 AT&T UNIX.

BSD                              July 08, 2004                             BSD



there you go. everything you need on chmod. thats how i f'ing learned how to use linux. RTFM.

if you need someone to sit next to you and hold your hand you shouldnt be using linux. if your not willing to learn, to teach yourself! then quite complaining and install windows. you obviously are not willing to learn how to use a command line to and will not be happy until everything is dumbed down for you.

3/22/2007 5:31:36 PM EDT
[#31]
Wow... Ok for future reference Legonas is an ass

He gave good info then went all bitchy

and the man chmod had about 1/4 that info

But I figured it out... you know how? by looking online... I haven't figured it all out... I'm still in the dark on how to change the permissions for a specific user.  I can do it for all users but not a specific one yet.

This day 5 of working with linux after never seeing a command line interface in my entire life... not even DOS  so Excuse me if I rant a little and step back from it for a bit.
3/22/2007 5:46:39 PM EDT
[#32]

Quoted:
Wow... Ok for future reference Tank is an ass

He gave good info then went all bitchy

and the man chmod had about 1/4 that info

But I figured it out... you know how? by looking online... I haven't figured it all out... I'm still in the dark on how to change the permissions for a specific user.  I can do it for all users but not a specific one yet.

This day 5 of working with linux after never seeing a command line interface in my entire life... not even DOS  so Excuse me if I rant a little and step back from it for a bit.



try www.linuxquestions.org

It's the ARFCOM of linux.

3/22/2007 6:53:48 PM EDT
[#33]
for my friend also trying to figure out samba... I found this on the ubuntu forum

file sharing how to



oh quick how do I find what my IP is on this thing?

... found out

ip addr
3/22/2007 7:33:21 PM EDT
[#34]
May I recommend going by your local Barnes & Nobel and grabbing a Linux book published by O'Reilly & Associates?  Sit down there, and grab a few other introductory books, and find a book that really suits your learning style.
3/22/2007 7:43:23 PM EDT
[#35]
welp, i thought i was gonna get it going.

I looked at the wiki that you posted and logged onto the server via Putty.

Stopped Samba.

Then tried the very first command: sudo gedit /etc/samba/smb.conf

Got this instead of opening the file:  cannot open display.

Anyone: wtf?  I could open it any other time.  Ill try restarting Putty....

ETA: didnt work.  help?
3/22/2007 8:14:14 PM EDT
[#36]

Quoted:
welp, i thought i was gonna get it going.

I looked at the wiki that you posted and logged onto the server via Putty.

Stopped Samba.

Then tried the very first command: sudo gedit /etc/samba/smb.conf

Got this instead of opening the file:  cannot open display.

Anyone: wtf?  I could open it any other time.  Ill try restarting Putty....

ETA: didnt work.  help?


gedit is graphical. if you're logging in with putty you need to use vi

try sudo vi /etc/samba/smb.conf

but you want to read up on how vi works, first.
3/23/2007 5:02:32 AM EDT
[#37]
Ok I've got it working sort of...

In my room... the server(Relativity) is hooked to the schools network

my laptop(Tachi) is also hooked to the schools network

While there I can from Tachi see Relativity and login and browse the shared file.


When I take Tachi to our Student Union Building... I can no longer see Relativity.


I'm told it is a subnet issue.  I need to find out how to make Relativity seen Campus Wide.  any ideas?



Also legonas(the ass) mentioned SSHing into his machine... This strikes me as an ideal way to setup new users... I'll have to do it for them... but I can let them type in their own password with out me needing to know what it is.  So now I'm of to figure out how to do that... anyone have any suggestions?
3/23/2007 5:32:01 AM EDT
[#38]

Quoted:
Ok I've got it working sort of...

In my room... the server(Relativity) is hooked to the schools network

my laptop(Tachi) is also hooked to the schools network

While there I can from Tachi see Relativity and login and browse the shared file.


When I take Tachi to our Student Union Building... I can no longer see Relativity.


I'm told it is a subnet issue.  I need to find out how to make Relativity seen Campus Wide.  any ideas?



Also Tank(the ass) mentioned SSHing into his machine... This strikes me as an ideal way to setup new users... I'll have to do it for them... but I can let them type in their own password with out me needing to know what it is.  So now I'm of to figure out how to do that... anyone have any suggestions?


Are you sure they are not using static IPs?  Not sure if this would affect your ability to access the server if this was the case
3/23/2007 6:16:54 AM EDT
[#39]
static IPs would only make it easier to see it...

I'm pretty sure they are using static IPs


... I just searched for the IP address... and it was able to find that

Edit:

I can find it using the IP but can't log in


OH OH look at this

Ubuntu guid.org
3/24/2007 10:14:41 AM EDT
[#40]
update:

Samba is set up

SSH is set up

I can SSH in ... make an account and set its password

code


sudo useradd -s /bin/true/ username
sudo smbpasswd -L -a username

** prompts for password, have the person enter their password **
sudo smbpasswd -L -e username


I can see the computer and access it any where on campus... BUT only with the IP address


I was told to install winbind to make the name (relativity) bind to the IP address so the name can be searched for and found by windows machines.

code


sudo apt-get install winbind


I've done that but still can't find it by its name
I don't think it's a problem with the schools network... I can set up windows sharing on my other windows machine and see it's name anywhere on campus...
3/24/2007 10:44:58 AM EDT
[#41]
Archaic style tag... As I need to finish doing a Ubuntu server.

Going to use light footprint + httpd = LightTPD (pronounced lighty) for the webserver instead of Apache.

3/24/2007 10:51:41 AM EDT
[#42]
I installed apache too...


I'm sure it'll be useful later... when I figure out how to use it... or what it's used for...

it's for servers over the internet right?
3/24/2007 10:52:49 AM EDT
[#43]

Quoted:
I installed apache too...


I'm sure it'll be useful later... when I figure out how to use it... or what it's used for...

it's for servers over the internet right?


Ugh.
3/24/2007 11:06:47 AM EDT
[#44]

Quoted:

Quoted:
I installed apache too...


I'm sure it'll be useful later... when I figure out how to use it... or what it's used for...

it's for servers over the internet right?


Ugh.


When I said I was a beginner at this... I wasn't kidding
3/24/2007 2:23:05 PM EDT
[#45]
Everyone starts somewhere at some time.

You are learning, and thats progress.

Remember, Some people NEVER learn...
3/24/2007 5:14:59 PM EDT
[#46]
does no one know how to get it to work with the name?

I can't find anything on the ubuntu forum beyond install winbind...
3/24/2007 5:26:53 PM EDT
[#47]

Quoted:
does no one know how to get it to work with the name?

I can't find anything on the ubuntu forum beyond install winbind...


from teh samba guide...i think this is what you need. ive never used samba. there is also a web based way to configure it

A Basic Samba Configuration File


The key to configuring Samba is its configuration file, smb.conf. This configuration file can be very simple or extremely complex, and the rest of this book is devoted to helping you get deeply personal with this file. For now, however, we'll show you how to set up a single file service, which will allow you to fire up the Samba daemons and see that everything is running as it should be. In later chapters, you will see how to configure Samba for more complicated and interesting tasks.

The installation process does not automatically create an smb.conf configuration file, although several example files are included in the Samba distribution. To test the server software, though, we'll use the following file, which you can create in a text editor. It should be named smb.conf and placed in the /usr/local/samba/lib directory:[4]

[global]
   workgroup = METRAN
[test]
   comment = For testing only, please
   path = /usr/local/samba/tmp
   read only = no
   guest ok = yes
This brief configuration file tells the Samba server to offer the /usr/local/samba/tmp directory on the server as an SMB share called test. The server also becomes part of the METRAN workgroup, of which each client must also be a part. If you have already chosen a name for your own workgroup, use the name of your workgroup instead of METRAN in the previous example. In case you are connecting your Samba system into an existing network and need to know the workgroup name, you can ask another system administrator or go to a Windows system in the workgroup and follow these instructions:
Windows 95/98/Me/NT: open the Control Panel, then double-click the Network icon. Click the Identification tab, and look for the "Workgroup:" label.

Windows 2000: open the Control Panel and double-click the System icon. Click the Network Identification tab. The workgroup name will appear below the computer name.

Windows XP: open the Control Panel in Classic View mode and double-click the System icon. Then click the Computer Name tab.

We'll use the [test] share in the next chapter to set up the Windows clients. For now, you can complete the setup by performing the following commands as root on your Unix server:

# mkdir /usr/local/samba/tmp
# chmod 777 /usr/local/samba/tmp
You might also want to put a file or two in the /usr/local/samba/tmp directory so that after your Windows systems are initially configured, you will have something to use to check that everything works.

We should point out that in terms of system security, this is the worst setup possible. For the moment, however, we only wish to test Samba, so we'll leave security out of the picture. In addition, we will encounter some encrypted password issues with Windows clients later on, so this setup will afford us the least amount of headaches.



Enabling SWAT


The Samba Web Administration Tool (SWAT) runs as a daemon under inetd or xinetd and provides a forms-based editor in your web browser for creating and modifying Samba's configuration file. For SWAT to work, entries must be added for it in the /etc/services and /etc/inetd.conf (or /etc/xinetd.d/swat) configuration files. To add the entries, follow these two steps:

Check your /etc/services file, and if it does not contain the following line, add it to the end of the file:

swat   901/tcp
Now for inetd or xinetd. These are "Internet super daemons" that handle starting daemons on demand, instead of letting them sit around in memory consuming system resources. Most systems use inetd, but xinetd is also used in some versions of Unix, notably the Red Hat Linux (Versions 7 and newer) that we use in our examples. You can use the ps command to see which of the two your system is running.

For inetd, add a line to the /etc/inetd.conf file. (Check your inetd.conf manual page to see the exact format of the inetd.conf file if it differs from the following example.) Don't forget to change the path to the SWAT binary if you installed it in a different location from the default /usr/local/samba:

swat   stream  tcp  nowait  root  /usr/local/samba/bin/swat  swat
Then force inetd to reread its configuration file by sending it a SIGHUP (hangup) signal:

# /bin/kill -HUP -a inetd
Notice that we are using a version of the kill command that supports the -a option, so as to allow us to specify the process by name. On FreeBSD and Linux, you can use the killall command[2] as follows:

# killall -HUP inetd
If you are not running Linux or FreeBSD and your version of kill doesn't have the -a option, you will need to use the ps command to find the process ID and then supply that to kill:

# ps ax | grep inetd
 780 ?        S      0:00 inetd
1981 pts/4    S      0:00 grep inetd                                        
# kill -HUP 780
If your system is using xinet, add a file named swat in your /etc/xinetd.d directory, containing the following:

# description: swat is the Samba Web Administration Tool, which
#       allows an administrator to configure Samba using a web
#       browser interface, with the URL http://localhost:901
service swat.
{
       socket_type             = stream
       wait                    = no
       protocol                = tcp
       only_from               = localhost
       user                    = root
       log_on_failure          += USERID
       server                  = /usr/local/samba/bin/swat
       port                    = 901
       disable                 = no
}
Then xinetd needs to be sent a signal[3] to make it reread its configuration files:

# /bin/kill -HUP -a xinetd
And that's pretty much it for the installation. Before you can start up Samba, however, you need to create a configuration file for it.




3/24/2007 6:22:29 PM EDT
[#48]
Samba should use your computers hostname as the display name in the windows/linux network. But even at home for mounting a network share, I still use IP addresses.



3/24/2007 6:34:01 PM EDT
[#49]
I haven't used Freebsd 4.2 stable for many years. Pretty much you need to tell the OS everything you need to do or want to do, which is why in many ways is "securer" than Windows. If you are using XP Pro (the most secure of all the Windows versin I have used) many times when you do something it pops up, "ARE YOU SURE?" In unix/linux nothing is "turned on" you need to tell the OS EVERYTHING you want and which way.

Can I ask you why you what to use linux, gui or otherwise? I have no fresh technical talents to make your journey easier - I wish I could.
3/24/2007 7:09:02 PM EDT
[#50]
If you want a good GUI for doing all this stuff.... go with SuSe.  It uses YaST, which has a graphical interface for configuring just about anything.

My manager at work, who has NO Linux experience at all was able to install Open SuSe and set up a samba share in no time.  
Previous Page
/ 2
Next Page

[ARCHIVED THREAD] - OK Linux Guys (Page 1 of 2)